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 Apps - Building Power Apps
Answered

Pass multiple values (file upload and an ID) to Power Apps flow

(0) ShareShare
ReportReport
Posted on by 147

Hello everyone,

 

I am currently following Shane Young's tutorial on uploading an excel to a Sharepoint list (PowerApps upload file to SharePoint document library - YouTube & Power Apps import Excel to SharePoint list or any data source with Power Automate - YouTube).

 

Danil_0-1695391527025.png

 

However, for my specific use-case I would like the flow to not only be able to register the values within the Excel table, but also retrieve some data from a different Sharepoint record. In order to do this I need to use a 'Get Item', but to use that effectively I need to also pass an ID to the flow, alongside the upload of the attachment.

Anyone that has a solution for passing this information into the flow as well?

The current code I am using to upload:

Set(varUpload, JSON(DataImage.Image, JSONFormat.IncludeBinaryData)); //Turn the file into binary data.
Set(varBase64Only, Mid(varUpload, Find(",", varUpload)+1, Len(varUpload) - Find(",", varUpload) - 1)); //Cut ends off binary data.
Upload_Flow.Run(Last(AttachmentControl.Attachments).Name, varBase64Only); //Upload to Sharepoint
Reset(AttachmentControl); //Reset uploader

 But somehow I should also be able to get the functionality of the following in the same flow run:

Upload_Flow.Run(UploadForm.LastSubmit.ID);

 

Help would be much appreciated!

Categories:
I have the same question (0)
  • Verified answer
    BCLS776 Profile Picture
    8,994 Moderator on at
    Re: Pass multiple values (file upload and an ID) to Power Apps flow

    Consider using the Power Apps V2 trigger as opposed to the original one. The V2 trigger very clearly lets you define additional input parameters in the trigger block.

     

    You'll need to refresh the flow and re-publish your app for the changes to be reflected.

     

    Hope that helps,

    Bryan

  • Daniël Profile Picture
    147 on at
    Re: Pass multiple values (file upload and an ID) to Power Apps flow

    Thank you, that indeed seems to solve my problem! That was a much easier solution than I anticipated.

     

    Now I am struggling with other things... But that's for a different topic. 😅

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

Coming soon: forum hierarchy changes

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 819 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 308 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 222 Super User 2025 Season 2

Last 30 days Overall leaderboard