web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Embedding an image in ...
Power Automate
Unanswered

Embedding an image in the body of an email where the has been uploaded via a form

(0) ShareShare
ReportReport
Posted on by 2

Here is my issue. I have a form where technicians answer questions. At the end of the form I have a file upload option. They upload from their mobile devices using the camera, so I get a jpg. 

 

I have created a Power Automate flow to send an email whenever the form is filled out. It formats the responses very simply:

 

1. Question number 1: Dynamic response number 1

2. Question number 2: Dynamic response number 2

 

I have the upload image dynamic response configured to come through on the email. It comes through with extra data. Not just a sharepoint url. I want to use the url in this dynamic response to embed the image in the email body, but I can't figure out how to extract just the url from the response.

 

VincentFro_0-1632171434427.png

24. Config Page: [{"name":"scan0010_.pdf","link":"https://mrint-my.sharepoint.com/personal/rint_com/Documents/Apps/Microsoft%20Forms/Manant%20Dent%20Form/Question/scan0010_s.jpg","id":"017OOXY2GNKWHQHK6S7FAYLE5WP7H4SLVL","type":null,"size":219640,"referenceId":"017OOXY2H4DFUQZTL4FFDLPGNJO4AQD3TL","driveId":"b!1HFjsy_c00qKNjtzJrDWmqtvNPIiw4VJgoQ3z1PQskhhynfk8SXuRaw0rvSoGnaV","status":1,"uploadSessionUrl":null}]

 

VincentFro_1-1632171626358.png

 

So, to recap: I want to pull just the "https://mrint-my.sharepoint.com/personal/rint_com/Documents/Apps/Microsoft%20Forms/Manant%20Dent%20Form/Question/scan0010_s.jpg" from the dynamic response, so that I can use the url to embed the image into the body. This way the receiver does not need to open a link and add an extra step.

Categories:
  • VJR Profile Picture
    7,635 on at

    Hello @VincentFro 

     

     

     

    VJR_0-1632220785931.png

     

    If you are able to use the array in the "Select" and then use the item() in the Expression

    VJR_1-1632220880312.png

     

    After running gives the value for the "Link" as the output

    VJR_2-1632220962794.png

     

    Sources: https://www.youtube.com/watch?v=6nJSUNh579w&t=792s

    Credits: @DamoBird365 for this post.






    -------------------------------------------
    Help fellow beings find relevant posts.
    Upvote to a supporting response.
    Mark as solution to an answer.

  • VincentFro Profile Picture
    2 on at

    The value of the array needs to come from the Dynamic Content "UploadConfigPage", but it gives me this error:

     

    VincentFro_0-1632250414171.png

     

    VincentFro_1-1632250468662.png

     

     

     

     

  • VJR Profile Picture
    7,635 on at

    Hi @VincentFro 

     

    The initialise variable that I showed was just an example.

     

    VJR_0-1632367345076.png

     

    Also if you can see I have removed the wordings "Config Page: " in my above example

     

     

    Config Page: [{"name":"scan0010_.pdf","link":"https://mrint-my.sharepoint.com/personal/rint_com/Documents/Apps/Microsoft%20Forms/Manant%20Dent%20F...","id":"017OOXY2GNKWHQHK6S7FAYLE5WP7H4SLVL","type":null,"size":219640,"referenceId":"017OOXY2H4DFUQZTL4FFDLPGNJO4AQD3TL","driveId":"b!1HFjsy_c00qKNjtzJrDWmqtvNPIiw4VJgoQ3z1PQskhhynfk8SXuRaw0rvSoGnaV","status":1,"uploadSessionUrl":null}]

     

     

    - So you will need to remove those words by replacing them with an empty string. (use Replace expression)

    - After replace, the resulting variable will be a string. But the "Select" operation needs an Array as an Input

    - So you need to convert this string to an Array before passing it to the Select operation.

    This conversion is done by the json() Expression

     

    Post back if you are still facing difficulties with some additional screenshots.






    -------------------------------------------
    Help fellow beings find relevant posts.
    Upvote to a supporting response.
    Mark as solution to an answer.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard