Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Problem sending Email Address from PowerApps to Flow

(0) ShareShare
ReportReport
Posted on by 7

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.

  • Verified answer
    v-alzhan-msft Profile Picture
    on at
    Re: Problem sending Email Address from PowerApps to Flow

    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.

  • Verified answer
    jcjcott Profile Picture
    7 on at
    Re: Problem sending Email Address from PowerApps to Flow

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,552 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow