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.