When updating sysapproval_approver state field to 'approved' via business rule, flow does not see it and does not go to if approved action

Igor Tsalyuk
Kilo Guru

When requesting a catalog item that requires approval, I need to check if Approver has a VIP flag, then I can auto-approve the request and proceed to create a task for an appropriate group.

I have a flow that is looking for approval for the requested_for.manager.

I created a business rule on sysapproval_approver table on Insert and Update that if the approver has VIP flag set to true, then set state field to 'approved'. But when Business rule is getting triggered, then I can see that the approval field is set to approved,but for some reason I see 2 approval records and both of them approved, but the flow behind the process is not recognizing this as 'Approved' and waiting for approval. Any idea what am I doing wrong?

find_real_file.png

find_real_file.png

 

11 REPLIES 11

Hi Leslie, no I did not figure out the answer yet. Let me know if you come up with something 🙂

Prasad Pagar
Mega Sage

Hi @Igor Tsalyuk @Leslie Birden 

Sorry to respond late on this as I was on leave due to some medical emergency

I have just tried this on my PDI with below config and its working fine

BR Conditions =

find_real_file.png

find_real_file.png

As running on after so added current.update()

find_real_file.png

 

Can you please try once and let me know?

Thank you
Prasad