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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Pars Json for multiple...
Power Automate
Unanswered

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. 

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,181 Most Valuable Professional on at

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard