web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Need help to fetch Dir...
Power Automate
Unanswered

Need help to fetch Director's email ID from the active directory

(0) ShareShare
ReportReport
Posted on by

Hi Experts,

 

I've created an approval flow which start with capturing the details in sharepoint filled by the user in a Microsoft form. Once the form is submitted the approval flow starts. At first it goes for Line Manager approval then Director and in the end Helpdesk.

The line manager is captured using Office 365 connector (get manager v2). I am facing challenge while capturing the Director's ID. As per the organization hierarchy between Line Manager and Director there is Head of the Department. which needs to be skipped in the Approval flow. Only Line Manager and Directors needs to get the approval emails. Is there a way/connector to fetch the Directors ID? Please suggest.

 

Categories:
I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    Hi @powerautom_uae 

     

    - Get the manager details of the line manager

    - When you get this, also get the jobTitle

    VJR_0-1636969241395.png

    - If it is Head of Department skip it.

    - Keep doing this till you find Director as the job title [or if you know there is only going to be Head of Dept in between these two then skip once (for Head) and capture the next (for Director) without checking the jobTitle].

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @powerautom_uae ,

     

    Is the picture below your requirement?

    vxiaochenmsft_0-1637044275629.png

    If so , you could try this flow.

    vxiaochenmsft_1-1637044318514.png

    vxiaochenmsft_2-1637044391188.png

    items('Apply_to_each')
     
    Best Regards,
    Wearsky

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard