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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

How to Get Manager Details from Azure AD and update in Dynamics CRM using MS Flow?

(0) ShareShare
ReportReport
Posted on by 10

Hi All,

I need to retrieve all the Users in Dynamics without a Manager (OOB field - A lookup to User), get the Manager details of those Users from Azure AD and update the Manager details in Dynamics CRM using Microsoft Flows.

2 scenarios :

a) When the User contains Manager in AAD - Flow runs successfully

b) When the User doesn't contain Manager in AAD - Flow fails and terminates the execution.

I have tried Error handling by having the steps configured after success and failure of Get Manager, but the Flow terminates.

0246.Update-Manager-in-D365.PNG

Count of Users Without a Manager is configured to run on failure of Get Manager and Update Manager Details is configured to run on success of Get Manager.

(The count of records without a Manager in AAD is huge and hence updating Manager for the Users in AAD is not preferable.)

Let me know if there is a fix to the above.

 

Thanks & Regards,

Shravya P

I have the same question (0)
  • Suggested answer
    StefanS365 Profile Picture
    3,575 Most Valuable Professional on at

    Hi Shravya,

    I wrote a blog post about a solution for this with Flow:

    User attribute values lost in synchronization > Flow to the rescue: Manager

    The error is "by design": Known Issues and Limitations

    So the Flow will fail when missing Manager for user, but will continue to run until all active users are checked.
    This works for me ;-)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 83 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans