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.
Check out this post on my blog:
https://www.tachytelic.net/2021/02/power-automate-embed-image-email/
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
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.
So iv'e tried that but i keep getting an error.
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.
Screenshot the action and also do a peek code and copy the code.
Outputs i grabbed from here.. https://www.tachytelic.net/2021/02/power-automate-embed-image-email/
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.
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.
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.
Check out new user group experience and if you are a leader please create your group
See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
45 | |
42 | |
41 | |
41 | |
32 |
User | Count |
---|---|
84 | |
83 | |
59 | |
50 | |
42 |