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.

View solution in original post

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,091)