Get Manager: how to react if there is no manager?

%3CLINGO-SUB%20id%3D%22lingo-sub-394644%22%20slang%3D%22en-US%22%3EGet%20Manager%3A%20how%20to%20react%20if%20there%20is%20no%20manager%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-394644%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20to%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewe%20have%20a%20Microsoft%20form%20for%20changes%20in%20our%20staff.%20This%20form%20has%20a%20field%20for%20the%20email-adress%20of%20the%20staff%20member.%20We%20want%20to%20have%20a%20flow%20that%20should%20send%20this%20form%26nbsp%3B%20to%20the%20Manager%20for%20approval.%3C%2FP%3E%3CP%3EThere%20are%20two%20exceptions%3A%3C%2FP%3E%3COL%3E%3CLI%3Eit%20is%20a%20new%20staff%20member%2C%20then%20it%20should%20be%20send%20to%20the%20Manager%20of%20the%20one%20who%20filled%20the%20form.%3C%2FLI%3E%3CLI%3Eit%20is%20a%20staff%20member%20without%20Manager%20(the%20Boss%20himself%2C%26nbsp%3Ba%20exempted%20works%20council%20or%20other%20Special%20Person)%3C%2FLI%3E%3C%2FOL%3E%3CP%3ENo.%201%26nbsp%3B%20is%20no%20real%20Problem%20because%20I%20have%20a%20field%20where%20I%20ask%20if%20it%20is%20a%20new%20staff%20member.%3C%2FP%3E%3CP%3ENo.%202%20is%20my%20Problem.%20If%20I%20ask%20with%20a%20connector%20for%20the%20Manager%20and%20the%20Active%20Directory%20has%20no%20entry%2C%20the%20flow%20fails.%3C%2FP%3E%3CP%3EHow%20can%20I%20manage%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3CP%3EAnnette%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-394644%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-397230%22%20slang%3D%22en-US%22%3ERe%3A%20Get%20Manager%3A%20how%20to%20react%20if%20there%20is%20no%20manager%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-397230%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F68583%22%20target%3D%22_blank%22%3E%40Annette%20Terzan%3C%2FA%3E%26nbsp%3BYou%20can%20use%20a%20parallel%20branch%20and%20a%20run%20after%20action%20for%20this.%20Set%20one%20of%20the%20branches%20to%20if%20failed%20and%20other%20to%20successful.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F103314iD059268BE67870BA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22parallel%20branch%20flow.png%22%20title%3D%22parallel%20branch%20flow.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-414651%22%20slang%3D%22de-DE%22%3ERe%3A%20Get%20Manager%3A%20how%20to%20react%20if%20there%20is%20no%20manager%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-414651%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22parallel1.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F106323i67F63E496328DDB0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22parallel1.png%22%20alt%3D%22parallel1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20tried%20this.....%20but%20it%20doesn't%20work....%20it%20has%20an%20error%20and%20don't%20run%20in%20the%20parallel%20branch%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22parallel2.png%22%20style%3D%22width%3A%20996px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F106324iA372B76C08D0DB13%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22parallel2.png%22%20alt%3D%22parallel2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello to all,

 

we have a Microsoft form for changes in our staff. This form has a field for the email-adress of the staff member. We want to have a flow that should send this form  to the Manager for approval.

There are two exceptions:

  1. it is a new staff member, then it should be send to the Manager of the one who filled the form.
  2. it is a staff member without Manager (the Boss himself, a exempted works council or other Special Person)

No. 1  is no real Problem because I have a field where I ask if it is a new staff member.

No. 2 is my Problem. If I ask with a connector for the Manager and the Active Directory has no entry, the flow fails.

How can I manage this?

 

Thank you

Annette

2 Replies

@Annette Terzan You can use a parallel branch and a run after action for this. Set one of the branches to if failed and other to successful.

parallel branch flow.png

parallel1.png

I tried this..... but it doesn't work.... it has an error and don't run in the parallel branch

 

parallel2.png