Jump to content

Implementing Insert from URL [Target:$result;https://graph.microsoft.com/v1.0/me/sendMail/?


This topic is 693 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • 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.

Link to comment
Share on other sites

  • Newbies

Thanks bcooney, I started there, but now I'm stuck and can't seem to make the connection described in my 1st post.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 693 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.