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 / Execute Flow from Powe...
Power Apps
Answered

Execute Flow from Power Apps Button with Multiple Arguments from Sharepoint List

(0) ShareShare
ReportReport
Posted on by 3

Hello, I'm trying to get a PowerApps that reserves a parking Space. The reserve button matches the user id to the Tokens available  to each user. The Action Button should substract 1 token from a Tally.

 

This is the Onselect script:

BayShareBookingFlow_New_2.Run(
First(
Filter(
Tokens;
And(
Tenant.Email = User().Email;
Month(ThisItem.'Vacancy Date') = Month_x0020_
)
)
).ID;
ThisItem.Title;
Text(
ThisItem.'Vacancy Date';
"[$-en-GB]dd/mm/yyyy"
);
ThisItem.Floor
)

Im getting the following error: " Number of arguments is invalid, 4 received, when 1 is expected" (rough translation from Spanish)

 

Here is a screenshot of the Flow: (Apologies for it being in Spanish)

Rahico91_1-1597945384713.png

Rahico91_2-1597945438321.png

How do I push all 4 arguments to Run the Flow and output a GetToken Identifier.

 

Thanks in advance!

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    You are passing 4 arguments to Flow from Power Apps, those 4 arguments are

    1) First(Filter(Tokens;And(Tenant.Email = User().Email;Month(ThisItem.'Vacancy Date') = Month_x0020_))).ID;
    
    2) ThisItem.Title;
    
    3) Text(ThisItem.'Vacancy Date'; "[$-en-GB]dd/mm/yyyy" );
    
    4) ThisItem.Floor

    Flow is only expecting one argument, which is  'Obtenerelemento_identificador'.

    You are not using the other 3 arguments in Flow, so it does not need them. If you add 3 more values in the Flow using the "Ask in PowerApps" variable, it will prompt for more arguments. If you change the Flow, you need to delete it in Power Apps in the connections, then re-add it.

    ---
    If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard