- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2022 05:49 AM
Hi All,
I have a catalog variable type as Numeric scale which will be visible only on sc_task and that field is editable.
After making changes in this field value, the user will close the sc_task. Then there is a run script to get the value of this numeric scale for that i have used this run script.
var itemID = current.sys_id;
var ritmGR = new GlideRecord('sc_req_item');
if (ritmGR.get(itemID)) {
var variable1 = ritmGR.currenrt.variables.number_of_fulfillment_tasks_to_netops_core.getValue();
gs.log('krithika'+variable1);
}
But when I checked the logs it is giving undefined.
Can anybody say how to get the value "4" in the log?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2022 05:52 AM - edited 11-11-2022 05:55 AM
var variable1 = ritmGR.variables.number_of_fulfillment_tasks_to_netops_core;
Also if you are writing BR on sc_task or sc_req_item below should also work:
current.variables.number_of_fulfillment_tasks_to_netops_core;
Please mark the answer correct/helpful accordingly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2022 05:52 AM - edited 11-11-2022 05:55 AM
var variable1 = ritmGR.variables.number_of_fulfillment_tasks_to_netops_core;
Also if you are writing BR on sc_task or sc_req_item below should also work:
current.variables.number_of_fulfillment_tasks_to_netops_core;
Please mark the answer correct/helpful accordingly.