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 / Forms to Lists and in ...
Power Automate
Suggested Answer

Forms to Lists and in the list a link to the form

(1) ShareShare
ReportReport
Posted on by 10
I have several Microsoft Forms and they all go to a single Microsoft List which just indicates which form had a submission, when it was submitted and who submitted it. We essentially use the list in order to know when a form is submitted and then we go to that form and download the form as an attachment by using the print to PDF option. We have several submissions a day and the amount of forms is growing. When we open the responses, the oldest form is automatically shown first. I would like a way to either automatically add an attachment to the list of the PDF version of the response OR add a link to the list that will take you to that specific submission. Other wise, we have to scroll through every response to get to the newest one or download an excel file every time we want to get the response as an attachment. 
 
I was trying to do a similar formula that @Mark Nanneman did in the responses but I keep getting an error. I'm still fairly new to using Power Automate. I used the "sub()" formula and just used Response ID, 1 but I keep getting an error that 'OpenApiConnection' is not valid and that a link should be type "string/uri." Can anyone provide any insight on why this is happening and/or provide additional screenshots of the whole flow? 
 
Here is a screenshot of my current flow, with some information redacted
 
Categories:
I have the same question (0)
  • Suggested answer
    trice602 Profile Picture
    15,404 Super User 2025 Season 2 on at
    Hi,
     
    Here is the framework to add form attachments directly to a list item.  In this process, I am creating the entire item as in the process and is a better solution than publishing the form link.
     
     
    The parse json is parsing the question for the file uploads.  In my example, my question is called "File Upload" -- note the dynamic content.
     
     
    This is the schema for form file uploads.  It seems to work on all my form upload questions pretty good.  If it doesn't work for you, you can look at the question in your get response details action and copy the payload for the question and use the "Use sample payload to generate schema"
     
    {
        "type": "array",
        "items": {
            "type": "object",
            "properties": {
                "name": {
                    "type": "string"
                },
                "link": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "type": {},
                "size": {
                    "type": "integer"
                },
                "referenceId": {
                    "type": "string"
                },
                "driveId": {
                    "type": "string"
                },
                "status": {
                    "type": "integer"
                },
                "uploadSessionUrl": {}
            },
            "required": [
                "name",
                "link",
                "id",
                "type",
                "size",
                "referenceId",
                "driveId",
                "status",
                "uploadSessionUrl"
            ]
        }
    }
     
     

    After creating the item (not shown here but you can see it in the flow), you want to loop through the attachment details and post the attachments to the item.  I'm showing you the loop details below but this will automatically create itself in the next action.

     

     

    As noted above, when you select dynamic content "name" in this next action, it will automatically wrap itself in a loop.  That's because the parse json action may contain more than one attachment and is designed to work with one attachment or up to 10 in Microsoft Forms.  In this step we need to get the actual content of each attachment.

     

    The highlighted part of the URL is the Form Name.  In my example, my form lives in a SharePoint site but your URL will be different if the form is created outside of a SharePoint site (the attachments are in your OneDrive for business account.

     

    Also note "/File Upload/" is the question name in the Form; without the slashes of course.

     

     

    The last step is to add the attachment to the Item.  The dynamic content for ID is from Create Item, File Name is from Parse JSON, and the File content (Body) is from Get file content using path.

     

     

     

    ------------------------------------------------

     

     

    ⭐ If this was helpful, please like and mark as a verified answer to help others find this too!

     

     

    Always glad to help! 💯💯💯💯💯

     

    Tom

     

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

  • Mark Nanneman Profile Picture
    991 Super User 2025 Season 2 on at

    Another thing you can do to link to the specific response in forms.office.com is you can use the response id to get an index value for the url parameter.

    The parameter in the url is called "ridx"

    This index is just the response id minus 1

    So you can have have a calculated column or have your flow record a link following this template to your sharepoint list

    https:// forms.office.com/Pages/DesignPageV2.aspx?origin=NeoPortalPage&subpage=design&id=<MICROSOFT_FORM_ID>&analysis=true&topview=SurveyResults&ridx=<Response_ID_Minus_1>

    I have a similar setup to what you described, a child flow triggered by different Form submission flows that records each form submission to one centralized sharepoint list and I save a link to each submission like this:

  • trice602 Profile Picture
    15,404 Super User 2025 Season 2 on at
    Hey there!
     
    I am following up on this post forms to lists and in the list a link to the form in this category building flows from 02/05/2025.  I know the post is a little older, but it is a common question here so wanted to take a moment and follow-up. I see there have been 2 replies and 1 likes and asking if your question has been answered.  If so, please help the community out by completing one or more of the following actions!  Thanks in advance!
     
    Easy as 1-2-3 ‼️💯⭐😎🆒🙏
     
    1) Mark a reply as a verified answer - this is essential, and it helps others with the same general question find this thread. ✅
    2) You can also mark one of more replies as a verified answer.  Please take a moment and give the author credit for volunteering their time. ✌️
    3) Like one or more replies.  Kudos always greatly appreciated! 👍
     
    Pro tip:  if you found your own solution or workaround, feel free to add a reply to your own post and mark it as the solution too!  The goal is to get this thread marked with a verified answer by anyone that finds one or more replies helpful!
     
    Again, thanks in advance for reading and responding, always glad to help!  Tom 💯💯💯💯💯
  • trice602 Profile Picture
    15,404 Super User 2025 Season 2 on at
    If I can help with anything else please let me know or tag me in a future post, I enjoy reading and answering questions.  Always glad to help!  Tom 💯💯💯💯💯

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard