cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Dual Super User
Dual Super User

'Office 365 groups mail' connector: how to get the body, attachments of new emails

Hi!

I'm working on a Proof of Concept with connector 'Office 365 Groups Mail' that is currently in Preview.

My goal is to check if trigger 'When a ne email arrives to a group' or any other related action block can provide me the Subject, Email body, attachmants, DateTime received, as I can do with Outlook, Gmail related triggers.

 

Since the trigger itself does not provide such info, I have tried to check if either conversation, or thread or related posts store such info with no success in the case of the body (I can just find a PReview with the first characters from Body) and no success in the case of the attachments.

Flow_NewEmailGroup.png

Any suggestions?

Thanx!

 

 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Solution Sage
Solution Sage

Re: 'Office 365 groups mail' connector: how to get the body, attachments of new emails

Hello @efialttes 

You could use MS Graph API to get the "conversations" of a Group using the following url: https://graph.microsoft.com/v1.0/groups/{group_id}/conversations

 

Therefore, you could create a flow that uses a Graph API call and try to get this information.

 

Hope it helps!

Ferran

View solution in original post

Highlighted
Post Prodigy
Post Prodigy

Re: 'Office 365 groups mail' connector: how to get the body, attachments of new emails

Hi @efialttes, try to use the premium connector "HTTP with Azure AD"  - it doesn't required to register an application in Azure.

View solution in original post

3 REPLIES 3
Highlighted
Solution Sage
Solution Sage

Re: 'Office 365 groups mail' connector: how to get the body, attachments of new emails

Hello @efialttes 

You could use MS Graph API to get the "conversations" of a Group using the following url: https://graph.microsoft.com/v1.0/groups/{group_id}/conversations

 

Therefore, you could create a flow that uses a Graph API call and try to get this information.

 

Hope it helps!

Ferran

View solution in original post

Highlighted
Dual Super User
Dual Super User

Re: 'Office 365 groups mail' connector: how to get the body, attachments of new emails

Thanx for the tip @fchopo !

I have a limitation to use 'Graph API'  the way Laura suggests, since admins in my organization have blocked access end users like me to Active Directory, so I cannot perform app registration 😞

Please also note the preview connector supports 'get conversation' action block, but as far as I understand from the official doc, this object does not provide neither the email body (just a preview, with a limited nr of characters) nor the attachments

https://docs.microsoft.com/en-us/graph/api/group-get-conversation?view=graph-rest-1.0&tabs=http

 

However, Microsoft has just recently posted an article in the Power Automate Official Blog describing this new connector, and explaining how to get Email body and attachments. I just followed the steps, implementing the branch on the right, and overcome my challenge

https://flow.microsoft.com/es-es/blog/use-our-new-office-365-groups-mail-connector/

 

So for some reason 'Get a Conversation thread' does not provide value to 'HasPosts' attribute, which was my initial approach.

Flow_GroupsMail_2.png

Thanx!

 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Highlighted
Post Prodigy
Post Prodigy

Re: 'Office 365 groups mail' connector: how to get the body, attachments of new emails

Hi @efialttes, try to use the premium connector "HTTP with Azure AD"  - it doesn't required to register an application in Azure.

View solution in original post

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (12,374)