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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Pars Json for multiple files from a MS form to a teams message

(0) ShareShare
ReportReport
Posted on by 45

Hello Community,

 

I'm hoping someone can help me out here please.

 

I'm going to create a form that will have multiple questions where a file upload is needed and this will then generate a message in teams. 

 

I've figured out how to post a link to the image in a teams chat but I'm stuck now when it comes to multiple:

 

This is the current flow I have setup:

 

Screenshot 2022-11-04 at 13.27.43.pngScreenshot 2022-11-04 at 13.27.47.png

 

Any help would be appreciated. 

I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    32,852 Most Valuable Professional on at
    Re: Pars Json for multiple files from a MS form to a teams message

    Hi @19Flash92,

     

    Instead of a parse json you could also use expressions to retrieve the link each of the question. With this approach you don't need multiple parse json actions and an apply to each loop.

     

     

    With a json function you can convert the answer of an upload question to an array. With an [0] you can retrieve the first item of that array. With the ['link'] reference you can get the link of that item.

     

    An example expression would be:

    json(outputs('Get_response_details')?['body/r2ad95efbfdfc4c7eae3a9d4ea69f20a1'])[0]['link']

     

    Below is a example with HTML for the Teams channel message

    Replace my question ids by your question ids.

     

    <a href="@{json(outputs('Get_response_details')?['body/r2ad95efbfdfc4c7eae3a9d4ea69f20a1'])[0]['link']}">Click here to view the first upload</a><br>
    <a href="@{json(outputs('Get_response_details')?['body/r437acd6a72e84184b203c34fc015dc38'])[0]['link']}">Click here to view the second upload</a><br>

     

    uploads_link.png

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 722 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 461 Moderator

#3
developerAJ Profile Picture

developerAJ 283

Last 30 days Overall leaderboard