Graph API Outlook - Inconsistencies in SendMail-function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
22-07-21 04:28 PM
We recently established our app registration and are getting ready to use the Graph API objects from the DX. I started to experiment with the Graph API Outlook VBO and found the following issues. I am a little worried that I just scratched the surface.
There are three different requests that allow me to send or prepare e-mail-messages. "Send Mail", "Create Message" and "Create Message in Folder".
I suppose "Send Mail" would be one of the actions most commonly used. The input parameters allow me to define a body content - but I cannot choose if I want to send the body as text or HTML. The parameter has no description and I can only find out what content is expected by looking in the Web API definition. If I want to send an e-mail in HTML, which we mostly did with the Outlook VBO. Even worse: There is a parameter "saveToSentItems" in the request body which is also hard-coded. The description of the Send Mail-action tells me that the message is saved in "Sent Items" by default. Too bad that this parameter is hard-coded as "false" in the request body.
To my understanding it should be possible to choose the content type as an input parameter. Same for saveToSentItems.
Next action is "Create Message". Same story, but the content type is hard coded as "HTML". No description about that either.
And, to sum this up, "Create Message in Folder". From my understanding this should at least behave the same way as "Create Message", but see for yourself - hard coded body content as text again.
Do I misunderstand something or is there still room for optimization in this API definition? With these mistakes in even the most basic actions I tend to get the feeling that it might be easier and less frustrating to create the whole definitions myself.
Does anybody have more experience with the other assets? Are the other ones more usable than this one?
Best regards
Til
------------------------------
Til Minet
RPA Developer
EWE AG Germany
Oldenburg
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-06-22 09:30 PM
------------------------------
Pavan Immadisetty
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-06-22 09:32 PM
------------------------------
Pavan Immadisetty
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-06-22 10:41 PM
The link is listed in the thread above, but here it is again:
https://digitalexchange.blueprism.com/dx/entry/3439/solution/microsoft-graph-api---outlook
Cheers,
------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-06-22 02:40 PM
------------------------------
Pavan Immadisetty
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-07-22 07:30 AM
May I know how to get the content-byte?
@ewilson in other thread you replied "You can get the bytes by using the Calculation stage". How can I use Calc stage? I mean what should go inside it?
Also, can I upload any file size (>4MB) using Send Mail api?
------------------------------
If I was of assistance, please vote for it to be the "Best Answer".
Thanks & Regards,
Ravi Singh
Sr. Software Engineer RPA
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-07-22 07:50 AM
I think I got this. Thankyou for the support.
May you please let me know whether or not I can transfer a file (>4MB) using "Send Mail" api.
------------------------------
If I was of assistance, please vote for it to be the "Best Answer".
Thanks & Regards,
Ravi Singh
Sr. Software Engineer RPA
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-07-22 01:19 PM
The Microsoft Graph documentation isn't entirely clear on limitations with regards to attachments.
If you look at the documentation for the Send Mail action, there's no mention of limits on the attachment size for direct attachments (which is what our action is performing). However, if you look at the Add Attachment endpoint documentation, it states:
"This operation limits the size of the attachment you can add to under 3 MB."
So the only advice I can offer is that you should test it to verify.
Cheers,
------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-07-22 01:22 PM
https://digitalexchange.blueprism.com/dx/entry/3439/solution/microsoft-graph-api---outlook
Cheers,
------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-07-22 01:44 PM
Thankyou so much for your support. I will test and let you know as well.
------------------------------
If I was of assistance, please vote for it to be the "Best Answer".
Thanks & Regards,
Ravi Singh
Sr. Software Engineer RPA
Labcorp
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-07-22 05:02 PM
Hope you are doing great!
I tried sending attachment >4MB using SendMail and it failed with 413 error.
Any recommendation, which api I can use and how to use?
------------------------------
If I was of assistance, please vote for it to be the "Best Answer".
Thanks & Regards,
Ravi Singh
Sr. Software Engineer RPA
Labcorp
------------------------------