cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
giangnguyen
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

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

7 REPLIES 7
v-bacao-msft
Community Support
Community Support

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.

Hi @v-bacao-msft 

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

 image.PNG

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.

Hi @v-bacao-msft 

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

expand.PNG

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.

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)

Did you figure out a way to save in-line images?  I know you can get the URL of where they're saved but not sure of a good way to get that file.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (4,064)