cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
jrojas
Level: Powered On

Using flow to send an email

I created an App using a sharepoint list. I added a button that uses a flow to send an email of some of information in the app. But I need the sender of the email to be the person who clicks the button. There are multiple people who use the app, and the flow works fine when I click the button but it fails when another user is using the app and clicks it.

Not sure what I am doing wrong. 

2 ACCEPTED SOLUTIONS

Accepted Solutions
cds
Level: Powered On

Re: Using flow to send an email

Office365.SendEmail(To, Subject, Body, {IsHtml: true/false})

cds
Level: Powered On

Re: Using flow to send an email

"email@email.com; email2@email.com"

9 REPLIES 9
RezaDorrani
Level 10

Re: Using flow to send an email

@jrojas 

 

Please provide Error screenshot from Flow

 

When Flow is called from PowerApps, the conenctions run under the context of the logged in user

So it should send email in context of the person who clicked the button

How is the Flow being triggered?

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

jrojas
Level: Powered On

Re: Using flow to send an email

It is being triggered from PowerApps.

Please see attached. Capture.PNG

RezaDorrani
Level 10

Re: Using flow to send an email

@jrojas 

 

Can you please go to the Flow and check run history

Open the failed run, and send screenshot of the action and the error message

cds
Level: Powered On

Re: Using flow to send an email

All of your flows are yours, it can't come from another account if they don't have the flow. 

 

Try using Office 365 Users connector in PA,

Office365.SendEmail()

jrojas
Level: Powered On

Re: Using flow to send an email

If I use that how do I format the information I'd like to add to the email body. 

I used an HTML format for the flow. 

 

Something like this: 

PowerAppsbutton_6.Run("<font size = 5>Equipment: " & DataCardValue16.Text & " Job: " & DataCardValue19.Text
& "<br></font size = 5>"
& "<br> 1. Cab-Doors/ Glass/ Mirrors/ Wipers & Washers/ AC Heater/ Seats/ Seat Belts"
& "<br> Concerns: <font color = red > " & DataCardValue6.Text)

cds
Level: Powered On

Re: Using flow to send an email

Office365.SendEmail(To, Subject, Body, {IsHtml: true/false})

jrojas
Level: Powered On

Re: Using flow to send an email

Ok awesome, thanks!

Can I send it to multiple users? Like put 3 different emails? 

cds
Level: Powered On

Re: Using flow to send an email

yeah just use a ';' to seperate i.e.:  User().Email && "; myemail@email.com;" && Gallery2.selected.Email

cds
Level: Powered On

Re: Using flow to send an email

"email@email.com; email2@email.com"

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 172 members 4,170 guests
Please welcome our newest community members: