cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Charliemacdmv
Helper II
Helper II

Email image preview from an uploaded photo from forms.

Hey everyone.

 

I have a form that is filled out when damage is found.  The form has 2 image upload questions.  After the form is submitted I'm going to have a formatted email sent to the required person. Is there anyway to have the uploaded images display as a preview in the email instead of just a link? The reason I'm asking is the email goes outside of our company. So they wont have access to our sharepoint. So i was thinking having the image preview in the email would fix that?

 

Appreciate any help. 

14 REPLIES 14
Paulie78
Super User III
Super User III

That's a really good post. But im still unsure of how to add the image from a Form.  So when the form is submitted flow Automatically sends the email with the image embedded. Maybe I'm over thinking it. Could i just use the HTTP request from your video? Sorry I'm pretty good with Flow but for some reason images have me all messed up lol

Paulie78
Super User III
Super User III

I presume you have a flow that is triggered when your form is submitted. That trigger will contain a base64 representation of your image, which you can use to embed into the email (which will work most of the time). If you really want maximum compatibility then you can use the HTTP method.

Charliemacdmv
Helper II
Helper II

So iv'e tried that but i keep getting an error.

Charliemacdmv_1-1614455302492.png

 

 

Charliemacdmv_0-1614455283948.png

 

Paulie78
Super User III
Super User III

That’s because you don’t have a get file content action. You’re just getting the metadata. Try get file content and see how you get on.

Ok thank you!!

I tried that but its still a no go. 

Charliemacdmv_0-1614459390539.png

 

Paulie78
Super User III
Super User III

Screenshot the action and also do a peek code and copy the code. 

Paulie78
Super User III
Super User III

It’s because the action I used was “get file content using path”. You used get file content, so copying the expressions verbatim won’t work unless you rename your action to match or remove the action and use the same action in use, finally, you could change the expressions to match the naming of your action. Probably easiest to just use get file content using path.

@Paulie78 Thank you so much for the help. I got it working. The only thing I need to figure out now is, if they upload more than 1 photo it only sends the first photo taken. Below is what I have so far.

 

Charliemacdmv_0-1614617271028.png

Charliemacdmv_1-1614617285517.png

 

Paulie78
Super User III
Super User III

Well done.

I haven't used forms much, but I assume it submits an array of images, which you could use to compile an array of images.

Yea that's what i was thinking as well. When I figure it out I will share.

Paulie78
Super User III
Super User III

I will have a quick look, it should be easy. Slight difference is that you are getting the file content from files, where I would probably just get it straight from the form submission.

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,959)