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

Approval hierarchy based on titel

Hi PowerPeople

I'm creating a form which should be approval by potentially 6 levels. 
The depending parameter is amount, so if the amount is not above 1.000 should it only be the requesters Manager or Director who should approve. 
If the amount is between 1.000 and 10.000 should it be the next level in the organization.

Im currently trying to make it work with the office365-user.manager funktion, but its not working dynamically. 

Any suggestions for making it work?

Br. Tore


1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: Approval hierarchy based on titel

HI @ToreG ,

How do you want to achieve your needs? Using PowerApps or MS Flow?

How do you send the Approval email? Using Microsoft Flow?

Further, could you please share a bit more about your data source?

 

If you want to send the Approval email within your PowerApps app, I think the If function could achieve your needs.

I have made a test on my side, please take a try with the following workaround:

Set the OnSelect property of the "Button" to following:

If(
   amount < 1.000
   Office365.SendEmail(Office365Users.Manager(User().Email).Mail, "Approval Email", "Email Body"),
   amount > 1.000 && amount < 10.000,
   Office365.SendEmail(
Office365Users.Manager(Office365Users.Manager(User().Email).Mail).Mail,
"Approval Email",
"Email Body"
) )

If you want to send the Approval email using Microsoft Flow, please take a try with the following workaround:6.JPG

 

7.JPG

 

Best regards,

Community Support Team _ Kris Dai
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

1 REPLY 1
Highlighted
Community Support Team
Community Support Team

Re: Approval hierarchy based on titel

HI @ToreG ,

How do you want to achieve your needs? Using PowerApps or MS Flow?

How do you send the Approval email? Using Microsoft Flow?

Further, could you please share a bit more about your data source?

 

If you want to send the Approval email within your PowerApps app, I think the If function could achieve your needs.

I have made a test on my side, please take a try with the following workaround:

Set the OnSelect property of the "Button" to following:

If(
   amount < 1.000
   Office365.SendEmail(Office365Users.Manager(User().Email).Mail, "Approval Email", "Email Body"),
   amount > 1.000 && amount < 10.000,
   Office365.SendEmail(
Office365Users.Manager(Office365Users.Manager(User().Email).Mail).Mail,
"Approval Email",
"Email Body"
) )

If you want to send the Approval email using Microsoft Flow, please take a try with the following workaround:6.JPG

 

7.JPG

 

Best regards,

Community Support Team _ Kris Dai
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

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,010)