cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
daroot
Resolver I
Resolver I

Leave Request App

Hi All, I am new with PowerApps. Play around with the Leave Request template.

What I am trying to do is, how to create the get 365 users same like the approver email. The situation is, one email for the approver (already there on template) and one more email for the Supervisor for example.

Thanks for any advice,
Z
1 ACCEPTED SOLUTION

Accepted Solutions
v-micsh-msft
Community Support
Community Support

Hi @daroot,

 

If here you are talking about the Creat New Request part, then within the OnSelect property of the Save button, the Email function is:

Office365.SendEmail(Office365Users.UserProfile(NewLeaveApproverID).Mail, "Leave Request Approval", emailHtml,{IsHtml:true, Importance:"normal"});

107.PNG

 

If additional Email need to be sent, then please consider add another line behind the formula above:

Office365.SendEmail(
Office365Users.UserProfile(NewLeaveApproverID).Mail, 
"Leave Request Approval",
 emailHtml,
{IsHtml:true, Importance:"normal"});
Office365.SendEmail(
SupervisorEmailAddress, 
"Leave Request Approval",
 emailHtml,
{IsHtml:true, Importance:"normal"});

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
Anwar
New Member

Hai Daroot

 

I am also looking for same solution, if you find any solution let me know

v-micsh-msft
Community Support
Community Support

Hi @daroot,

 

If here you are talking about the Creat New Request part, then within the OnSelect property of the Save button, the Email function is:

Office365.SendEmail(Office365Users.UserProfile(NewLeaveApproverID).Mail, "Leave Request Approval", emailHtml,{IsHtml:true, Importance:"normal"});

107.PNG

 

If additional Email need to be sent, then please consider add another line behind the formula above:

Office365.SendEmail(
Office365Users.UserProfile(NewLeaveApproverID).Mail, 
"Leave Request Approval",
 emailHtml,
{IsHtml:true, Importance:"normal"});
Office365.SendEmail(
SupervisorEmailAddress, 
"Leave Request Approval",
 emailHtml,
{IsHtml:true, Importance:"normal"});

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Dear Michael

 

Appreciate your reply.

 

Where we will configure the supervisor email address, as the application will be for the whole company and the supervisor for each department will be different.

 

Anwar

daroot
Resolver I
Resolver I

Hi Michael, nice solution. And thanks for the explanation

Hi @v-micsh-msft,

 

On the Approver email address is it possible to used a button and parse the value as the selected value. So the users no need to pick the on popup page, since the only 5 managers on the system. If possible how to do it?

 

Thanks

Hi @v-micsh-msft ,

 

My leave request is sending email to me and not to my manager.

Help!!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (39,654)