cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Totalnoob
New Member

Powerapp using Onedrive to update spreadsheet and send email to current user

Hello Everyone,

 

I just recently started learning powerapps for my company and its very confusing (a lot to take in)

 

Right now im trying to figure out the following if anyone can help me.

 

I have a spreadsheet in excel formed as a table and an app in powerapps created via canvas. When people submit the information on the app, it updates the excel sheet by adding it in another row which is great. But how can i do that while also sending a "Receipt of confirmation email" to the user submitting the information along with the information submitted on the body? I tried using flows but lack knowledge.

 

Much Appreciated.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

@Totalnoob 
Back() is probably the issue.  You have to use it on a new-line.

Office365Outlook.SendMailV2(User().Email, "Receipt of confirmation", "[Epxense Type] (Job Code)");
Back();

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

3 REPLIES 3
mdevaney
Super User
Super User

@Totalnoob 

Hello there.  Welcome to the Power Apps Community.  You can actually do this without Flow.  I will tell you how.

 

#1  Add the Office365Outlook connector to your app.

 

#2  Click on your Form and select the OnSuccess property

 

#3  Write this code in the OnSuccess property

 

Office365Outlook.SendMailV2(User().Email, "Confirmation Title", "Confirmation Message")

 

#4 Submit the form.  It will send a confirmation email.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

Totalnoob_0-1600283081811.png

 

I have it with the formula now but it still doesnt send me an email. What am i doing wrong?

 

Thanks,

 

@Totalnoob 
Back() is probably the issue.  You have to use it on a new-line.

Office365Outlook.SendMailV2(User().Email, "Receipt of confirmation", "[Epxense Type] (Job Code)");
Back();

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,906)