May 27, 20223 yr Newbies I feel like I’m so close but I’m stuck. I think I have all the pieces, I just don’t know how to put them together. I have my Insert from URL: Insert from URL [Target:$result;https://graph.microsoft.com/v1.0/me/sendMail/?uploadType=resumable -H “Authorization:Bearer AccessToken -H “Content-Type: application/json; charset=UTF-8” -H “X-Upload-Content-Type: message/rfc822” -D “$responseHeaders” -X POST -H “Content-Length: 0”] and I have my message parameter: { “message”: { “subject”: “Meet for lunch?”, “body”: { “contentType”: “Text”, “content”: “The new cafeteria is open.” }, “toRecipients”: [ { “emailAddress”: { “address”: “[email protected]” } } ] } } But how do I incorporate the message into the Insert from URL command? I feel like I need to wrap the message in a JSON function and place it in the Insert from URL step, but I don’t know how to do that. Thanks for your thoughts.
May 28, 20223 yr I think you’ll find this blog post helpful. https://www.soliantconsulting.com/blog/microsoft-graph-api-filemaker-two/
May 28, 20223 yr Author Newbies Thanks bcooney, I started there, but now I'm stuck and can't seem to make the connection described in my 1st post.
May 28, 20223 yr I am not familiar with Microsoft Graph API. In general, when you want to post data in JSON format, you need to put the JSON text in a variable, then include these cURL options in your call: -H "Content-type: application/json" -d @$postData where $postData is the name of your variable.
May 28, 20223 yr We funnel all api calls through this script. It handles formatting the request. https://github.com/proofgeist/mfm-http
Create an account or sign in to comment