Ask for Approval Action Not Waiting in Flow - No Record Created in sysapproval_approver Table

TanyapongS
Tera Contributor

Hi everyone,

I'm encountering a strange issue with the "Ask for Approval" action in my flow. As shown in the attached image, the action goes through to "Completed" without actually waiting for an approval. No approval record has been created in the sysapproval_approver table either.

However, when I test the exact same flow in my dev instance, everything works as expected—the flow waits for approval, and the approval request is created.

Has anyone experienced this issue before? Any insights on why this might be happening or how to resolve it would be greatly appreciated.

Screenshot 2024-10-18 at 1.01.01 pm.png

Thanks in advance for your help!

2 REPLIES 2

Animesh Das2
Mega Sage

Hi @TanyapongS ,

 

If the same flow is working fine in dev instance then the issue is likely to be with the permission who initiates the session. Probably the 'Run as' is set as 'User who initiates session' and in dev you have admin access so it ran successfully for you when you tested.

Please change the 'Run as' to 'System user' and check if it works fine. PFB SS for your reference.

AnimeshDas2_0-1729232757650.png

If this address your question, please mark this response correct by clicking on Accept as Solution and/or Kudos.

You may mark this helpful as well if it helps you.

Thanks, 

Animesh Das

Amit Verma
Kilo Patron
Kilo Patron

Hi @TanyapongS 

 

Could you please check if there is any business rule being configured on the user_has_resource_role table which might be conflicting with the approval ?

 

Thanks and Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.