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 8

Re: Using flow to send an email

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

View solution in original post

cds
Level 8

Re: Using flow to send an email

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

View solution in original post

9 REPLIES 9
Dual Super User
Dual Super User

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

Dual Super User
Dual Super User

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 8

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 8

Re: Using flow to send an email

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

View solution in original post

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 8

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 8

Re: Using flow to send an email

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

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 86 members 5,094 guests
Please welcome our newest community members: