cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to add a Parameter in a Button to Run Stored procedure

 

I can run a SP from PowerApps using Flow  when I just pass a Value like this.

'PowerApps-Schaltfläche_2'.Run(6000)     <that One works>

 

But I want to have it dynamic. On my Detailscreen I have a DetailForm and Datacards with the values. But i can't pass it over

It says "Invalid arguments"  The Name of the datacard is "ID" 

 

'PowerApps-Schaltfläche_2'.Run(ID.DataField)    <not working>

PowerApps-Schaltfläche_2'.Run("ID")    <not working>

 

Any Ideas please

Thx Claus

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Allright I found a solution bymyself

 

Thing is.. I got the wrong property . So the solution to pass over a parameter is only depending of the content of the datacard

 

'PowerApps-Schaltfläche_2'.Run(ID.Default) 

 

But this hopefully helps helps other people

 

 

 

 

View solution in original post

3 REPLIES 3
Jeff_Thorpe
Super User
Super User

Could the issue be that Flow is expecting a number and PowerApps is inserting a string from your field? If that is the case then it would look something like this:

 

PowerApps-Schaltfläche_2.Run(Value(ID.Text)) 


--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Anonymous
Not applicable

Thx for the Answer.

You are right in terms of the numeric value from the proc. A Bigint parameter is required

 

Your solution was hopeful but it didn't wotk 😞

 

PowerApps-Schaltfläche_2.Run(Value(ID.Text))  

PowerApps-Schaltfläche_2.Run(Value(ID.Datfield))

 

 

Anonymous
Not applicable

Allright I found a solution bymyself

 

Thing is.. I got the wrong property . So the solution to pass over a parameter is only depending of the content of the datacard

 

'PowerApps-Schaltfläche_2'.Run(ID.Default) 

 

But this hopefully helps helps other people

 

 

 

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,253)