Skip to main content
Post a question

Notifications

Community site session details

Community site session details

Session Id : hBAR8Qun2sfwNXHz0gSxMw
Finance | Project Operations, Human Resources, ...
Unanswered

I really need some guidance/help on a leave workflow!

Like (0) ShareShare
ReportReport
Posted on 30 Aug 2022 02:21:55 by 281

Hello experts, 

I was hoping someone could proof check a leave/time off flow I have created, there's just not that much material online for me to follow. So I would really appreciate someone helping me out. 

In my business, when someone applies for time off this request is sent to their line manager for approval or denial, if it is approved it is sent payroll for final approval. I want to keep that process but add an additional step, when payroll (Anthony) submits leave on behalf of someone in the business that request is automatically sent to payroll (Anthony) to approve. 

This is what I've created so far:

pastedimage1661825201525v1.png

This is the payroll condition I have created. Leave submitted by is containing Anthony's full name. Question - will the value need to be Anthony's full name or his User ID? e.g. AnthonyS? 

pastedimage1661825300330v2.png

If Anthony's condition is approved that will sent to Payroll (Anthony) for final approval. 

pastedimage1661825598290v3.png

The rest of the workflow seems to have worked, from an initial test I've tried - If the workflow originator applies for leave this request gets sent to their line manager:

pastedimage1661825695016v4.png

And if approved, this get send to payroll for final approval:

pastedimage1661825741987v5.png

Question: Does this workflow look correct? 

- Has anyone tried something similar? or know a better way I can do this? 

- If I wanted to add another step, for example if payroll (Anthony) applied for leave on behalf, instead of the request going to payroll for approval, how would I reroute that to be sent to the manager of that employee that payroll (Anthony) is submitting leave for? 

I would really appreciate if someone could help out, hopefully some of this material will guide others in the future. 

Thank you,

Henry

  • Henry G Smith Profile Picture
    281 on 30 Aug 2022 at 04:24:31
    RE: I really need some guidance/help on a leave workflow!

    Hi DynamicsHR ,

    Thank you for the reply.

    What do you mean by being so specific? As in the flow should be simpler?

    No worries, I'll attempt the UserID. That shouldn't be a problem as we have back up users that we can use in the interim, if Anthony was to leave the business.

    Okay thank you, I thought that might be a bit difficult.... I didn't know you could recreate this workflow in power automate considering that you have to have an OOB workflow attached to the leave type. Is it possible to create this workflow on power automate and have the leave request notification still come through Microsoft teams HR application for managers to approve and deny?

    Thank you,

    Henry

  • DynamicsHR Profile Picture
    40 on 30 Aug 2022 at 03:35:49
    RE: I really need some guidance/help on a leave workflow!

    Based on your requirement I wouldn't have gone that route and try to make it so specific but as long as it works then you should be ok.

    In terms of your question, you should give the user id instead of the name because you can have multiple employees with same name so a user id is unique. One thing to worry about is maintenance, since Anthony can leave anytime or be on vacation then who will be approving the workflow? 

    Lastly, I don't think you can add the last step that would route to a manager of an employee of whom Anthony is requesting a leave on their behalf because he is the originator and so the workflow will only allow you to send it out to his direct report. These workflows are not as advanced as we would like them to be but Power Automate can allow you to achieve your requirement. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,518 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,594 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans
Loading complete