- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2022 11:32 AM
Hi Team,
I want to display the variable in notification which is available on the catalog form, i will create the notification on sc_task table, before that
Can anyone suggest the sample email script here.
Assume variable name is "end_date_time".
Thanks in advance
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2022 11:42 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2022 11:20 PM
In your workflow you need to add Variables add variables on your catalog task as given below:
Thanks,
Anil Lande
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2022 11:27 PM
Hi Anil,
I have created sc_task through script activity in workflow not used catalog task activity, in this case how can i pull required variables on sc_task table.
Regards
Naga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2022 11:32 PM
Hello,
1. Go to your catalog item.
2. Check the related list for Variables on your item.
3. Pull the 'global' field in the list view of your variables related list by clicking the gear icon or by list layout.
4. Set it as true for the variables you want to make visible everywhere. like on RITM and tasks as well.
or
instead of 3rd step you can open then variable from the list of variables and select the check box 'Global'. And then repeat the same for all the variables you want to show.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2022 11:35 PM
Hi Anil,
Please find the below script
var idnum = current.sys_id;
var ritmGR = new GlideRecord('sc_req_item');
if (ritmGR.get(idnum)) {
mrvs = ritmGR.variables.cmdbid;
var grServer = new GlideRecord('cmdb_ci_server');
grServer.addQuery('sys_id', mrvs);
grServer.query();
var asgnGroup = '';
if (grServer.next()) {
asgnGroup = grServer.assignment_group.toString();
}
var teskDesc = grServer.assignment_group;
var grServer1 = new GlideRecord('sc_task');
grServer1.initialize();
grServer1.assignment_group = asgnGroup;
grServer1.request_item = idnum;
grServer1.request = current.request;
if (grServer.assignment_group.getDisplayValue() == "x") {
grServer1.short_description = "Dear x, kindly execute request";
}
if (grServer.assignment_group.getDisplayValue() == "y") {
grServer1.short_description = "Dear Dear y, kindly execute request";
}
if (grServer.assignment_group.getDisplayValue() == "z") {
grServer1.short_description = "Dear z, kindly execute request";
}
grServer1.insert();
//grServer1.update();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2022 11:42 PM
Hello Naga,
Please follow the above method mentioned by me
Thanks.