Hi everyone,
I'm just new to MS Flow and I wanted to try tu build an appobation demand using Froms/Approvals/Sharepoint.
But I want my demands to be approved by the manager of the one completing the form. The issue is that in my organisation, not everyone has an manager identified in AAD.
So I designed my flow to handle the fact that the Get-Manager function can be passed because the demander has no Manager identified.
The problem is that whenever this case occurs, the flow is marked has failed because the Get-Manager function returned an 404 error.
My question is this : is there any mean to avoid getting those errors by handling the 404 error of Get-Manager directly in the flow ?
@Anonymous
Can you verify that you are getting Responders Email back for Forms? Take a look at the output form Get Response Details.
Sorry it was the wrong screenshot, the item used by GetResponsableV2 is Responder's Mail.
@Anonymous
Get Manager requires either an email address or UPN - what is being returnd in body/responder ?
@Anonymous
Can you post a screen shot of your get manager action in edit mode? It would be helpful to see how Get manager is configured.
Hi @ScottShearer ,
I already did what you said, configuring the "run after" item and my flow is succesfully runnnig through all the steps I configured but in the end (despite the flow being fully executed) the flow is still tagged as Failed and some mails are spamming me about that failed execution..
@Anonymous
It would be best to create a new post with your issue. When doing so, please post a screen shot of your Flow.
Hi Scott. Im running into a "User not found" when I run the Getmanagerv2 in my flow. Within office365 the person whom I used as a tester has a manager listed. I have verified with our Azure tennant admins that all users have manager populted but It just wont resolve.....Im stuck. Without the getmanager function working, the use of MSflow in my org is limited.
Appreciate any thoughts.
Thanks.
Mike.
@Anonymous
Take a look at the "Configure Run After" setting for the action generating the error. You can configure an action only to run of the action immediately before it has generated an error. Here is a link to a blog post that discusses this technique.
Another option might be to check the value of the manager before assigning the approver in the approval action. Have a condition - if the manager is null, the assign another individual as a manager. This implies that you'lll be using a variable to store the manager.
If you need an example, please let me know.
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2