cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
absint0o
Helper I
Helper I

Attach a sharepoint link with .eml mail and its attachments on a Planner task

Hi there,

 

I have this flow:

absint0o_0-1594293025350.png

The Teams Channel only receives emails and i wanted to create a task whenever this Teams channel receives an email. But i also wanted to add a link to the .eml mail and to every attachment inside the email. I've noticed that every email received by the Teams channel creates .eml files and saves attachements to the "Email Messages" Sharepoint inside the Teams Channel. So, it's possible to copy the link from this .eml and the email attachments and add them to Task description?

 

Thank you very much!

 

regards,

João

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @absint0o ,

 

I agree with the suggestion provided by @efialttes that you can monitor changes in the email message folder and create corresponding tasks.

 

Please try to refer to the following image to configure flow.

 

  • Initialize array variables to store links to file.
  • Use an expression to get the code contained in the file name to get the corresponding attachment in the email.
last(split(triggerBody()?['{Name}'],'_'))
  • Traverse the email message folder to get the corresponding attachment and append it to the array variable. In addition, you need to append the .eml file to the array variable.
  • Finally, configure Update task details action.

Image reference:

Spoiler
180.PNG181.PNG182.PNG183.PNG

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
efialttes
Super User III
Super User III

Hi!

'I've noticed that every email received by the Teams channel creates .eml files and saves attachements to the "Email Messages" Sharepoint inside the Teams Channel'

 

If the Teams Channel only receives emails, did you consider replacing your current trigger and use 'When a file is created' in "Email Messages" Sharepoint instead? So you just need to doublecheck if extension is .eml, if so create the task.

I believe the trigger provides as one of its output a linkk to the new file, you can just use it in your 'Update task details'

 

Hope this helps



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!



v-bacao-msft
Community Support
Community Support

 

Hi @absint0o ,

 

I agree with the suggestion provided by @efialttes that you can monitor changes in the email message folder and create corresponding tasks.

 

Please try to refer to the following image to configure flow.

 

  • Initialize array variables to store links to file.
  • Use an expression to get the code contained in the file name to get the corresponding attachment in the email.
last(split(triggerBody()?['{Name}'],'_'))
  • Traverse the email message folder to get the corresponding attachment and append it to the array variable. In addition, you need to append the .eml file to the array variable.
  • Finally, configure Update task details action.

Image reference:

Spoiler
180.PNG181.PNG182.PNG183.PNG

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (66,445)