Hello Everyone!
I have an embedded canvas app in a form in a model driven app. It contains buttons that launch flows.
I can easily use 'flowname'.Run(ModelDrivenFormIntegration.Item.Instruction) to send parameters from the column in the Instruction table to my flow.
What I would also like to do is for the user to use a date picker (DatePicker1) in the canvas app to choose a date. I then want to send that date to the flow as well.
I have tried this expression: 'flowname'.Run(ModelDrivenFormIntegration.Item.Instruction,DatePicker1.SelectedDate) but I get an error in the canvas app as shown below:
Am I doing something wrong, or is what I'm trying to do not possible?
Thanks!
Solved! Go to Solution.
Hi @sdowse,
The error is saying the number of arguments is not correct, expected 1 but received 2.
This is an issue with the invalid parameter.
When you add a new parameter into the FlowName.Run() function, you should add a new "Ask in PowerApps" into the Flow and save Flow.
Then on the PowerApps side, remove the associated Flow from Apps, then re-added it. this issue will be solved.
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @sdowse,
The error is saying the number of arguments is not correct, expected 1 but received 2.
This is an issue with the invalid parameter.
When you add a new parameter into the FlowName.Run() function, you should add a new "Ask in PowerApps" into the Flow and save Flow.
Then on the PowerApps side, remove the associated Flow from Apps, then re-added it. this issue will be solved.
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
30 | |
29 | |
28 | |
20 | |
11 |