Bypass Approval
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2022 12:17 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2022 12:27 AM
Hi
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
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2022 12:38 AM
I have the script and its updated successfully in the workflow, but still i can see the approval doesn't bypass VP & above level
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2022 12:43 AM
could you post script and workflow here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2022 12:45 AM
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
Regards,
Shloke