Bypass Approval

Rajesh74
Kilo Contributor

We have a Catalog Item, its an Access request form , when an organization Directors submit the request it should bypass(Skip) the VP and above level approval, please help me on this

 

11 REPLIES 11

Sai Kumar B
Mega Sage
Mega Sage

Hi @Rajesh 

In your workflow/flow designer before approval activity, you can write a validation in IF activity to check user role and bypass the approval

answer = ifScript();

function ifScript(){
//Do your logic to check if user is organization director
if(true){
return 'yes'; ////connect this to approval activity
} else{
return 'no'; ///Bypass approval activities
}
}

I have the script and its updated successfully in the workflow, but still i can see the approval doesn't bypass VP & above level 

 

could you post script and workflow here?

shloke04
Kilo Patron

Hi,

Can you share a screenshot of your Workflow which you have built currently and accordingly I can suggest where you need to make a change in?

Looks like just before you are generating an Approval you need to put a IF Block and check if an Organization Director has submitted a request or not.

Also how are you identifying Organization Director here? is there a Field which identifies this?

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke