Skip to main content

Notifications

Community site session details

Community site session details

Session Id : pEfSpNJ1Rm28+euGFGPC3t
Power Automate - Building Flows
Answered

Get file content from MS forms file upload

Like (0) ShareShare
ReportReport
Posted on 17 Jul 2023 08:08:52 by

Hello guys
I have a form that asks for a file upload. In my power automate flow the response JSON is parsed. (Flow: When a new response is submitted --> Get response details --> Parse JSON). I now have the link to a sharepoint file. My question now: What can I do with the parsed information? Is it possible to get the file data from the link?


Example: If I were to get the file from the link. Lets say its an excel document. Would It be possible to loop over the table entries?

  • Verified answer
    Community Power Platform Member Profile Picture
    on 18 Jul 2023 at 08:30:56
    Re: Get file content from MS forms file upload

    I have solved the Task as follows.
    Image1GetUserFromExcel.pngImage2GetUserFromExcel.pngImage3GetUserFromExcel.png
    This flow adds members from an excel file to a Teams group.

  • Community Power Platform Member Profile Picture
    on 17 Jul 2023 at 12:04:50
    Re: Get file content from MS forms file upload

    I solved it. Sorry for the silly question.

  • Community Power Platform Member Profile Picture
    on 17 Jul 2023 at 11:58:07
    Re: Get file content from MS forms file upload

    I thank you very much. I am almost there. Can you help me with one further problem? When I try to retrieve the tables it does not seem to find any tables in the excel document. I dont get any errors just an empty value: 

    []
    Do you have any tips?
  • v-jefferni Profile Picture
    on 17 Jul 2023 at 09:34:29
    Re: Get file content from MS forms file upload

    Hi @Anonymous ,

     

    Actually, you only need to know which is the specific file that uploaded from MS Forms and saved in SharePoint, and this is the File identifier.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    on 17 Jul 2023 at 09:30:57
    Re: Get file content from MS forms file upload

    Oh okay, if I wanted this to be automated just from the forms then I would need to know a lot of additional information that a user had to specify. Right?

  • v-jefferni Profile Picture
    on 17 Jul 2023 at 09:08:25
    Re: Get file content from MS forms file upload

    Hi @Anonymous ,

     

    It requires file identifier than file path. It's just displaying the file path for checking if the correct file is selected. The internal parameter is file identifier. Please check below thread:

    Solved: Dynamic Filename: List Rows from Excel Table - Power Platform Community (microsoft.com)

     

    Best regards,

  • Community Power Platform Member Profile Picture
    on 17 Jul 2023 at 09:00:55
    Re: Get file content from MS forms file upload

    How can I find a file through an id? The "Get Tables" requires a path to file.

  • v-jefferni Profile Picture
    on 17 Jul 2023 at 08:54:45
    Re: Get file content from MS forms file upload

    Hi @Anonymous ,

     

    File link cannot be used to get the file id, which is necessary to be used in Excel's Get tables action.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    on 17 Jul 2023 at 08:49:54
    Re: Get file content from MS forms file upload

    Thanks for the reply. The problem is, if I use the sharepoint connector "Get file metadata" I need a link the the sharepoint folder. But from the JSON I get the direct link to the file.

  • v-jefferni Profile Picture
    on 17 Jul 2023 at 08:40:19
    Re: Get file content from MS forms file upload

    Hi @Anonymous ,

     

    First step, you will be able to get file path using file name and use the path in a 'get file metadata using path' action, and then you can get the file Id.

    Solved: MS Forms file uploads directly to the SharePoint w... - Power Platform Community (microsoft.com)

     

    The second step is more complicated since the files would be with dynamic names I suppose. You will need to 'get tables' from dynamic files using file Id and 'list rows' from the table that flow get from the excel file. The outputs of List rows are arrays, they could be used in Apply to each to be looped over. However, there would not be columns for you to select from dynamic contents. You will have to manually write expressions items('Apply_to_each')?['ColumnName'] to reference the value of different columns.

     

    Best regards,

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,653 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard