How to skip approval of the member who is requester and belongs to group in Group approval activity of workflow?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2019 11:41 PM
I want to skip approval of member in group who is also requester of request?
Labels:
- Labels:
-
Service Catalog
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2019 03:16 AM
Or try below code inside function:
answer = ifScript();
function ifScript() {
var reqFor = current.variables.requested_for ; // replace with your value for requester for.
var gr = new GlideRecord('sys_user_grmember');
gr.addQuery('user', reqFor);
gr.addQuery('group','group sys_id');// here you can check if user is part of group you passed
gr.query();
if(gr.next()){
return 'yes';
}
else {
return 'no';
}
Please mark as Correct Answer and Helpful, if applicable.
Thanks!
Abhishek Gardade
Hexaware Technologies
Thank you,
Abhishek Gardade
Abhishek Gardade