cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

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
Regular Visitor

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
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.

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))

 

 

Regular Visitor

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
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (10,204)