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 / Run Flow from button g...
Power Apps
Answered

Run Flow from button getting 'invalid number of arguments' error

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a Flow called 'Clear SSM Field' within a button called ReScheduleButton that I'm trying to run in my PowerApp.  I suddenly started getting this error.  It was working up until today and I can't figure out why.  The ClearSSMField.Run(ReScheduleButton) comes at the end of several statements (not shown in screen shots).  

 

The error I'm getting is: 'Invalid number of arguments: received 1, expected 2'.  What am I missing?

Overall Flow picture:

Flow Shot 1.jpg

Get items:

Flow Shot 2.jpg

Clear out Fields:

Flow Shot 3.jpg

 

Here is my PowerApp:

Flow Shot 4.jpg

 

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

    How many parameter values do you want to pass from your app to your flow?

    Based on the error message that you provided, it seems to tell that you specified two parameters (that you want to pass from your app) within your flow, but you provided only one value within the ClearSSMField.Run() function.

    Please check if you have specified two parameters (that you want to pass from your app) within your flow.

    In addition, please also check if you have provided proper parameter values for the arguments of your ClearSSMField.Run() function.

    If the issue still exists, please consider take a try to re-create your app, then add the new flow connection within your app, try it again, check if the issue is solved.

    More details about passing parameter values from an app to a flow, please check the following article:

    https://www.youtube.com/watch?v=ovLIwnj6QjU

     

    Best regards,

    Kris

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks Kris.  I finally figured out that in Flow I had two columns that I was filtering, which I didn't immediately realize were the parameters that the app was looking for in the Run() statement.  The Get Items statement includes a filter that looks for the fields Availability and SSM set to specific values.  Once I changed the Run() to be:

    ClearSSMField.Run(Availability.Value,SSM.DisplayName) then it worked perfectly.

    Thanks again for the direction.

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 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard