You need to sign in to do that
Don't have an account?
Damon Lim
Recall approval process by non submitter through APEX
Hi,
I have a case where I need to assigned approval user (non submitter) to recall the approval process. The recall code works well for submitter but for non submitter, I got the below error:
Process failed. First exception on row 0; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: []
Is there a way to "force" recall in APEX ?
Thanks.
I have a case where I need to assigned approval user (non submitter) to recall the approval process. The recall code works well for submitter but for non submitter, I got the below error:
Process failed. First exception on row 0; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: []
Is there a way to "force" recall in APEX ?
Thanks.
Said that, you should make sure the Allow submitters to recall approval requests option is selected for the approval process and the code is executed in a sysadmin's context (what I'm assuming is that your apex class is a with sharing class, is yes then use without sharing and try).
Let me know if this helps.
All Answers
Said that, you should make sure the Allow submitters to recall approval requests option is selected for the approval process and the code is executed in a sysadmin's context (what I'm assuming is that your apex class is a with sharing class, is yes then use without sharing and try).
Let me know if this helps.
Yes, without sharing will run in System Context and force the Recall action on Approval Process.
Thanks for sharing.