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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Pass multiple values (...
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

    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

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard