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.
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
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 ;-)
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156