web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Problem sending Email ...
Power Automate
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.

Categories:
I have the same question (0)
  • Verified answer
    jcjcott Profile Picture
    7 on at

    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.

  • Verified answer
    v-alzhan-msft Profile Picture
    Microsoft Employee on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 552

#2
Valantis Profile Picture

Valantis 388

#3
11manish Profile Picture

11manish 375

Last 30 days Overall leaderboard