cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ermisha
Frequent Visitor

sending emailv2 power app

hey guys please help out, I am working on  sending emailv2 in power App on  the button click and there is 3 possible email based on the what the status is meaning when the New request go to one email if its approve goes to different mail on hold back to the requester could you suggest any function

1 ACCEPTED SOLUTION

Accepted Solutions
jcfDaniel
Super User
Super User

Hi,

 

Try this:

 

Office365Outlook.SendEmailV2(
Switch(
Dropdown1.SelectedText.Value,
"A", "someone@company.com",
"B", "someoneElse@company.com"
),
"This is the Subject",
"This is the Body"
)


Regards. JD.

View solution in original post

3 REPLIES 3
jcfDaniel
Super User
Super User

Hi,

 

Try this:

 

Office365Outlook.SendEmailV2(
Switch(
Dropdown1.SelectedText.Value,
"A", "someone@company.com",
"B", "someoneElse@company.com"
),
"This is the Subject",
"This is the Body"
)


Regards. JD.
jcfDaniel
Super User
Super User

Did it work? If so, please accept as solution as it will help others find it as well.


Regards. JD.

Thank you so much for the Answer. but the Subject is different based on the out come so i have to put one bay one for all the status(comb box) Value and it give me office 365 Outlook.SendEmailV2 has an invalid Value for Parameter "TO"

 

 

 

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors
Top Kudoed Authors
Users online (1,405)