The CreatorCon Call for Content is officially open! Get started here.

Flow Designer If condition evaluating as false

Ljone
Giga Contributor

Hi Experts,

I have a basic flow designer that is generating approval and based on response will do something.

My problem is, if Approval State is rejected for the 2nd approval, the flow is not evaluating it as True, I have tried adding timer but is not helping.  I have screenshots below.

Basic Flow 

1. Ask for Approval from Manager

     If rejected: Update ticket to Rejected.     (this is being evaluated correctly)

     if approved:  Ask for Approval from  Infra Manager.

2.  Ask for Approval from Infra Manager.

       If Approved: Update ticket 

       If rejected: Mark ticket as Rejected.     ((this is not being evaluated correctly, returning as False)

Please help me check

 

I have put the condition:

If Approval State = Rejected  AND Approval State is not Cancelled

 

find_real_file.png

     

 

 

 

1 ACCEPTED SOLUTION

ricker
Tera Guru

Ljone,

Sure, I don't think Flow as the ability to ask for the approvals one at a time, here's an example of a group approval and manager approval.  It'll ask for both approvals at the same time.  One approval goes to the group Owners and is set for anyone to approve or reject.  If there are 20 people in the group any one of them can approve.  The other approval uses an AND condition and asks for approval from the Requested for's Manager.  There is also a due date set with auto reject after 5 days.  The order of approval, manager then group or group then manager won't matter but both the person manager and one person from the group will need to approve.  It's been awhile but I'm pretty sure it will reject right away when rejected by either a group member or the manager instead of waiting.

You could also set it to auto approve instead of reject.  Other options for approval criteria are a certain number or percentage of group members approve or reject

find_real_file.png

 

View solution in original post

11 REPLIES 11

can you share screenshot of the flow action with expanded?

 

Here are the screenshots.

find_real_file.png

find_real_file.png

PriyaRanji
Tera Guru

Hello,

Please add "Wait for condition" where you can check for approved or reject based on that you can define further steps/actions. Before the approval action, all the steps defined will be executed. Please add the action in your flow either approved or reject based on it you can define further steps in the flow.

Please do let me know in case of any inputs needed.

Thanks,

Priyanka R

Ljone
Giga Contributor

Hi Priyanka,

Thank you for your reply. do you know the condition I can put in the Wait for condition to evaluate once the Approval has been set to rejected? below is the flow I have.  I have tried adding the number 8. Approval state but it won't let me. The flow is triggered in Request tablefind_real_file.png

ricker
Tera Guru

In my experience with Flow it is best to handle all your Approvals in one Approval action...Unless you're asking for approvals on two different records you're going to get inconsistent results since both approval actions will be looking at and updating the same record.

There is no need to set a Wait for Condition the Approval action takes car