Need to send notification to requested for manager's manager if the requested for manager is inactiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2024 12:55 AM
HI,
I have a requirement; notification need to be sent to requested for manager's manager if requested for manager is inactive.
Initially i have created the entire setup to send the notification to requested For's manager but now i need to add the logic if requested for's manager is inactive then notification need to be triggered to requested for manager's manager.
In workflow i have created an event
and the event triggers the notification and in notification who will receive section param 1 is checked.
Note: In above script var_manager_name is a variable is present in catalog it will pop the manager's name based on requested for user.
notification need to send to requested for manager's manager only when the requested for's manager is inactive.
how we can achieve this please help me with the script.
Thanks in advance
- Labels:
-
Request Management
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2024 01:03 AM
Hi @suuriya ,
Try below script in Parm 1
(function() {
// return the value to use for Parameter 1
if(current.variables.var_manager_name.active == false){
return current.variables.var_manager_name.sys_id;
}
else
return current.variables.var_manager_name.manager.sys_id
}());
If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!
Thank you