- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2024 10:51 PM
Hii All
i made a workflow on requested item table in user activity i select one user to generate approver in requested item table it is working fine now i have to add like if my user is in active then who will generate approver how to fix this issue what changes would i have to do
thanks and regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2024 11:00 PM
Hi @dheeru_1994 ,
You have to mention in the advanced script, & push the right sys_id for active user.
If the provided user is inactive, check for condition by gliderecording user table, if he is active true or false,
if active false, then add additional approval with different user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2024 11:00 PM
Hi @dheeru_1994 ,
You have to mention in the advanced script, & push the right sys_id for active user.
If the provided user is inactive, check for condition by gliderecording user table, if he is active true or false,
if active false, then add additional approval with different user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2024 11:25 PM
i select in active user but still creating approver and abel to approve requested item
but i want to add if user is not active then other user should create approver and approve the requestet item
how to write script in user activity i am new in scripting
can you provide me script for that
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 12:26 AM
@dheeru_1994 , if current Approver is Inactive approval goes to his Manager
var gr = new GlideRecord("sys_user");
gr.addActiveQuery();
gr.query();
if (gr.next())
return 'yes'; // take to approval activity
else
return 'no'; // skip approval
}
Regards,
Shyamkumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 12:41 AM
may i to write this in user activity in advance script
and select inactive user in user field