I've created a Flow that has a few "Start an Approval" and "Send an Email" steps, and connected that Flow to an app created in PowerApps. The app contains a data card where users can select a person from our Office 365 tenant, and my goal is to connect the selected person's email to a variable in Flow.
What's strange is that everything works as expected if I put the Run command in the OnSelect property of a button, but not if I put it in the OnSuccess property of my form. When doing the former, the emails are sent out as expected. When doing the latter, I get an "invalid argument" error pointing at the email variable.
The Run command looks like this: FlowName.Run(DataCardValue.Selected.Email); Navigate (SuccessScreen, ScreenTransition.None); ResetForm(FormName)
I've tried removing the ResetForm just in case it was removing the value before running the Flow, but that didn't help.
Hi @jcjcott ,
If your problem has been solved, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!
Best regards,
Alice
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Update: A workaround that will do the trick for now, until I understand what I'm doing wrong.
If you create a Text Label, and set its value to DataCardValue.Selected.Email, you can then run the Flow using Label.Text instead of DataCardValue.Selected.Email and it works as expected. I am simply hiding the Text Label by putting it in an unused corner of the form and making the text white.
WarrenBelz
146,552
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,928
Most Valuable Professional