cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
powerautom_uae
Regular Visitor

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

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.

 

2 REPLIES 2
VJR
Super User
Super User

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
Community Support
Community Support

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

 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

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

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,778)