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 Apps / Using Flows in Powerapps
Power Apps
Unanswered

Using Flows in Powerapps

(0) ShareShare
ReportReport
Posted on by 63

Hi Team

 

I want to add a flow inside my App which will send an email to specific person depending on condtions, once the submit button has been clicked.

eg. if Person is equal to Name1 - if Yes: email Name1, if No: If Person is equal to Name2 - if yes: email Name2 etc etc

 

I know that i need to make the flow inside Powerapps, which i have done with the conditions, however, upon putting MyFlow.Run () tells me i need to put parameters into the () section.  this is the section i'm not understanding.

 

I have been making flows with Power Automate so i may be getting the criteeria wrong as inside powerapps is slightly different.

Categories:
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @KristyH,

    The error means that you need to refer to the parameters that you used in your flow.

    If you need to send email to Name1, then you need to transfer the Name1 email address from Power Apps to Power Automate. Like that you have a TextInput including Name1, you need to refer to TextInput1.Text in your MyFlow.Run () like below:

    MyFlow.Run(TextInput1.Text)

     

    Actually, it is much easier to achieve this directly in Power Apps, just write an if statement on the OnSelect property of a button as below:

    Office365Outlook.SendEmailV2(If(Person1=Name1,Name1emailaddress,Person2=Name2,Name2emailaddress),"Notify","Testbody")

     

  • KristyH Profile Picture
    63 on at

    oh wonderful. i am trying the "if statement" now. thanks for that, but where do i put the email body? or do i need to save an email template?

    eg. 

    Offce365Outlook.SendEmailV2(if DataCard1="name1","Name1@emailaddress.com.au")

    where do i put the body?

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @KristyH,

    I have wrote it in my previous reply, please check it one more time:

    Office365Outlook.SendEmailV2(If(Person1=Name1,Name1emailaddress,Person2=Name2,Name2emailaddress),"Notify","Testbody")//TestBody is the place where you could input body//

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard