cancel
Showing results for 
Search instead for 
Did you mean: 

Skip Workflow apporval if approver is same in 2 collections

Former Member
0 Kudos

Hi All,

We have 2 collections for approval in Cotract documents, budget and procurement approval.

If both the Budget Owner approver and the Procurement Approver are entered as the same person, then how to skip the Budget Owner approval.

Regards,

Prabhat

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Prabhat,

In your workflow script before calling the addApprover method for Budget Owner approval, you should be able to check if the approver is the same as Procurement Approval. If the approver is the same, donu2019t call the addApprover method.

Regards,

Vikram

Former Member
0 Kudos

Hi Vikram,

Are you referring to workflow definition? In workflow definition first activity is level 0 apporval.

Regards,

Prabhat

0 Kudos

Yes, I'm referring to the prescript of the Budget Owner approval.

Regards,

Vikram

Former Member
0 Kudos

Hi Vikram,

In workflow we have 9 levels of approvals so it means I need to add same code in prescript of each and every level?

Is there any option to skip whole workflow process instead of checking at every level?

Regards,

Prabhat

nabheetscn
Active Contributor
0 Kudos

You want to complete workflow in this case.

Nabheet

Former Member
0 Kudos

Hi Prabhat Pandey ,

You can use below function to abort the workflow when you found the approver is the same.

cancelProcess('Reason to cancel the workflow');

Thanks,

Noppong Jinbunluphol

Answers (0)