cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
stapes
Impactful Individual
Impactful Individual

How do I enter Parameters for a Stored Procedure called from a Flow?

I have created a flow that uses an SQL Stored Procedure with a number of parameters.

 

RollCallDate.PNG

 

 

I am trying to use this in a Canvas App.

Using the OnSelect action of a button, I am trying to run this:

 

ClearCollect(newCollection, RollCallDate.Run(TextInput1.Text))

 

The Tool has underlined this with a wriggly red line, and the tooltip says 'Invalid number of arguments: received 1, expected 0'.

 

So how do I pass these parameters?

 

RunParameters.PNG

 

1 ACCEPTED SOLUTION

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

Hey @stapes 

 

First you need to add the variable in Flow. Use dynamic Content and select "Ask in PowerApps" under PowerApps action. This needs to be done passed as a string value.

Now, remove the flow from the app and register it again.
You should be able to see the variable created in the flow. Pass the value and this should resolve your error.

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

1 REPLY 1
yashag2255
Dual Super User II
Dual Super User II

Hey @stapes 

 

First you need to add the variable in Flow. Use dynamic Content and select "Ask in PowerApps" under PowerApps action. This needs to be done passed as a string value.

Now, remove the flow from the app and register it again.
You should be able to see the variable created in the flow. Pass the value and this should resolve your error.

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,631)