- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2022 09:55 AM
How to skip(by pass) to send the approval to VIP user?
IF script is not working.
var title = current.variables.requested_for.vip;
answer = ifScript();
function ifScript() {
if (title == true)
return 'yes';
else
return 'no';
}
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2022 10:48 AM
Hi,
Can you put true in inverted comma,
var title = current.variables.requested_for.vip;
answer = ifScript();
function ifScript() {
if (title == 'true')
return 'yes';
else
return 'no';
}
Regards,
Deepankar Mathur

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2022 10:13 AM
Hey,
Do you want to remove VIP approval altogether? then you can just remove activity and connect the previous activities with latter ones
OR
If you want to skip for certain conditions, add a if activity in the workflow before your VIP approval activity and configure your condition there
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2022 10:22 AM
Hi Aman,
Thanks for your reply.
I have a requirement, if the approver is VIP then approval should be skipped to next activity.
And if the approver is non VIP then approval should send to requester's manger of manager(2nd level approval).
Thanks in advance.
Regards,
Juganta

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2022 11:21 AM
Try this script:
var title = current.variables.requested_for.vip;
answer = ifScript();
function ifScript() {
if (title == "true")
return 'yes';
else
return 'no';
}
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2022 10:13 AM
That is going to depend on how you are doing your approval action.
Options are
- The action has a condition field, so you could add a check for not a VIP.
- If you are using an approvers script you can check it in there.
- You can us an action before the approval that does what ever checking needs to be done and bypass the approval action if its a VIP.
I would say the easiest is the first two.