Skip to main content

Notifications

Power Automate - Using Flows
Answered

flow with 3 approver - jump to 3th approver if second approver is empty

Posted on by 71

hello...

i have a flow with 3  approvers.

if the first approves, it goes to the second, if second approves it goes to 3 and than it ends.

sometimes the second approver is not needed.

how can i accomplish if the second approver field is empty, that the flow jumps to the 3 approver step?

 

tx kuno

  • WW-25090315-0 Profile Picture
    WW-25090315-0 30 on at
    flow with 3 approver - jump to 3th approver if second approver is empty
    HI Kuno66
     
    Can I have your flow details in here I am stuck in same situation please
  • Verified answer
    Pstork1 Profile Picture
    Pstork1 64,014 on at
    Re: flow with 3 approver - jump to 3th approver if second approver is empty

    I thought you said if there was no Approver 2 it should just go on to approver 3. Do you want it to stop the flow at that point?

  • Kuno66 Profile Picture
    Kuno66 71 on at
    Re: flow with 3 approver - jump to 3th approver if second approver is empty

    i almost got it...

    but on the no part the workflow doesn´t stop. it goes along to the approval3 part...but it should stop

    the yes part is ok

     

    Kuno66_0-1628839072583.png

     

  • Pstork1 Profile Picture
    Pstork1 64,014 on at
    Re: flow with 3 approver - jump to 3th approver if second approver is empty

    YOur condition3 should be to check the length() of the string is greater than 0, not that the string is greater than 0

  • Kuno66 Profile Picture
    Kuno66 71 on at
    Re: flow with 3 approver - jump to 3th approver if second approver is empty

    i´m stuck  on the condition part. it jumps always to approval3  no matter if there is greater than or less than.

    Kuno66_0-1628773196692.png

     

    Kuno66_1-1628773292973.png

    an  now it gives me an erro

    Unable to process template language expressions for action 'Condition_3' at line '1' and column '36562': 'The template language function 'greater' expects two parameter of matching types. The function was invoked with values of type 'String' and 'Integer' that do not match.'.

  • Pstork1 Profile Picture
    Pstork1 64,014 on at
    Re: flow with 3 approver - jump to 3th approver if second approver is empty

    Yes, if approver2 has an email then it will do the yes side.  Approver 3 should be outside the condition so it runs whether approver2 was there or not.  The yes side should also include any actions that you need to do when approver2 approves or denies. 

  • Kuno66 Profile Picture
    Kuno66 71 on at
    Re: flow with 3 approver - jump to 3th approver if second approver is empty

    that means if the approver2 field has an email, it goes to the yes part but if there isn´t a value? 

    on the no part  do i habe to put  the approval3 inside?

    and do i not have to make the outcome part?

    Kuno66_0-1628696193099.png

    thanks

  • Pstork1 Profile Picture
    Pstork1 64,014 on at
    Re: flow with 3 approver - jump to 3th approver if second approver is empty

    No, the start and wait goes in the yes side of the condition.  I'm assuming you are assigning the approver via a variable.  That's what you test to see if its blank.

    image.png

  • Kuno66 Profile Picture
    Kuno66 71 on at
    Re: flow with 3 approver - jump to 3th approver if second approver is empty

    yes. but how i do this.

    do i have to put the condition before the start and wait for approval 2 and than?

    condition = Approver2 is equal to 0?

     

    Kuno66_0-1628692486413.png

     

  • Pstork1 Profile Picture
    Pstork1 64,014 on at
    Re: flow with 3 approver - jump to 3th approver if second approver is empty

    If you put the second approval inside a condition you can test whether the approver is blank.  If it is then do nothing.  If its not then do the second approval.

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard

Featured topics

Restore a deleted flow