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 / Flow Run arguments for...
Power Apps
Answered

Flow Run arguments for attachments in Powerapps

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

For a workflow approval system, I have a created a flow which gets input from powerapps (stores in sharepoint list) , sends a approval mail in outlook with attachments and after approval updates a field (status) in sharepoint list. 

 

In powerapps, for running the flow i have 5 arguments (Title, cost, approver mail ID, status ID & attachments). So i have the following code for it

              Powerappsworkflow3_group.Run(Form.LastSubmit.Title, Form.LastSubmit.Cost, Form.LastSubmit.Approver.Email, Form.LastSubmit.ID, Form.LastSubmit.Attachments).

 

It shows 'This Run has invalid arguments'

If I run the flow without the attachments, it is working fine.

 

So can you provide me with the correct argument syntax for run to resolve my issue?

Categories:
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Do you want to pass the attachments from your app to your flow?

     

    If you want to pass the attachments from your app to your flow, I afraid that there is no way to achieve your needs in PowerApps currently.

     

    The result the Form.LastSubmit.Attachments formula returned is a Table value, but currently, within Microsoft Flow, it could only accept String parameters passed from an app.

     

    If you would like this feature to be added in PowerApps, please consider submit an idea to PowerApps Ideas Forum:

    https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

     

    Actually, based on the needs that you mentioned, I think it is not necessary to use a PowerApps app to fire a flow to send the Approval email, instead, I think Microsoft Flow could achieve your needs completely.

    On your side, please consider configure your flow as below:11.JPG

    Within your flow, you should use "When an item is created" trigger as the Trigger of your flow instead of the "PowerApps" trigger button (other actions within your flow do not need to change, you just need to modify the Dynamics content references within other actions from the "PowerApps" trigger into the "When an item is created" trigger). Then your flow would be fired when any new item is created in your SP list.

    If you want to get the attachments attached to the new item in your SP List, I think the "Get attachments" action of SP connector could achieve your needs.

     

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard