I want to create a sharepoint list element, if a user has a manager in Office 365. The problem I have, the element "Get manager" throws an error, if he has not a manager.
The good thing is, that my flow are creating the elements for the users, who has a manager.
The bad thing is, that the flow said he had an mistake, but I only want to ignore these errors.
In other programming languages, I would use "HasManager" and would then use "GetManager". But I dont know, how to do this in Power Automate.
Thanks for your help.
Solved! Go to Solution.
Hi @Mandree :
If the target user does not use a manager, then Get manger will fail. So you only need to add a branch under Get manger, execute branch A successfully, and execute branch B if execution fails, so that even if flow reports an error when running, it can ensure that the function is normal.
1\Add a parallel branch
You can find that the fourth loop execution failed, Flow did not end immediately, and the fifth loop executed successfully.
Thanks for your reply. But I wrote, that my flow does the same.
"The good thing is, that my flow are creating the elements for the users, who has a manager."
But what I dont want, that in the flowhistory the status jumps on error.
So how could I edit my flow, that I dont get an error in flow history.
The Groups connector has a Graph HTTP request action that you should be able to interact with graph to check manager status a little better ... I've just been struggling to find the right way in for you on that.
Seriously, I hyper-focused on this for HOURS yesterday by mistake ... but it was educational for me!
The manager information is an additional set of information on a user that isn't always sent with the core data about a user, and I have just been struggling to get it to show for the (admittedly 'guest') users that have me as a manager for testing purposes in my personal tenancy.
Learn how to create your own user groups today!
Check out the new Power Platform Community Connections gallery!
Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.