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

How flow get image from ms teams to send email

Dear All,

How can I get the image of ms teams to send emails through flow. 

 

I use flow when a message added to the teams channel will send an email, but sometimes messages in the teams have images attached.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: How flow get image from ms teams to send email

Hi @giangnguyen ,

 

My previous Post has provided detailed steps for Apply to each. Can't you view it over there?

 

15.PNG

 

Details of Apply to each:

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

6 REPLIES 6
Highlighted
Community Support
Community Support

Re: How flow get image from ms teams to send email

Hi @giangnguyen ,

 

In fact, the files in the message are stored in SharePoint Library.

Teams group will generate the SharePoint Site group and store the files in Shared Document. Each Channel has a corresponding folder.

 

You could refer to the following method to configure Flow.

  • Use Get file content using path to get the file in the corresponding folder and append it to the variable.
  • Because there may be more than one attachment in the message, we need to use the following method to get all the attachments.

https://flow.microsoft.com/en-us/blog/multiple-attachments-single-email/

Expression reference:

body('Get_file_content_using_path').$content

Image reference:

15.PNG16.PNG

Please take a try.

 

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.
Highlighted
Helper I
Helper I

Re: How flow get image from ms teams to send email

Hi @v-bacao-msft 

I used the above step but the email part didn't get the name of Initialize variable

 image.PNG

Highlighted
Community Support
Community Support

Re: How flow get image from ms teams to send email

Hi @giangnguyen ,

 

Please follow the screenshots I provided to configure Flow.

You seem to be missing the configuration in Apply to each.

FileName is actually Compose, just renamed by me.

 

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.
Highlighted
Helper I
Helper I

Re: How flow get image from ms teams to send email

Hi @v-bacao-msft 

You can display the inside of "Apply to each". Thank

expand.PNG

Highlighted
Community Support
Community Support

Re: How flow get image from ms teams to send email

Hi @giangnguyen ,

 

My previous Post has provided detailed steps for Apply to each. Can't you view it over there?

 

15.PNG

 

Details of Apply to each:

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

Highlighted
New Member

Re: How flow get image from ms teams to send email

This works like a charm to save attachments. Thanks for explaining this one so well.

Is it possible to save images in the body of the text? (e.g. if I paste a snipped image)

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

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

Users online (4,563)