- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2022 04:05 AM
Hello SNC,
I am trying to update affected_ci in the related list of RITM table to get updated as per catalog variables >> server.
configuration item field on RITM form takes the value from variable by simple onLoad script but setting up affected_ci is being a challenge.
Any advice?
function onLoad() {
//Type appropriate comment here, and begin script below
// >> topic >> set configuration_item field name value same as server variable
var ciVariable = g_form.getValue('server');
g_form.setValue('configuration_item', ciVariable);
}
How i can achieve this via client onLoad script? or by any method.
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2022 04:12 AM
You can use Before insert Business Rule on sc_req_item table and add the line in advanced script section
current.cmdb_ci - current.variables.catalog_variable_name_hold_ci;
Thanks & Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2022 12:04 AM
I believe your question was how to populate the Affected CI related list with the variable Server and show it on RITM form
Did you check my script for that?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader