Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2025 05:43 AM
Thank you! I ended up adding the following script to a BR on the source table:
(function executeRule(current, previous /*null when async*/) {
// Assuming 'u_source_table_field' is the field in the current table that triggers the update
// And 'target_variable_name' is the variable in the RITM to be updated
if (current.u_package_description.changes() || current.u_requested_item.changes()) {
var grRITM = new GlideRecord('sc_req_item');
grRITM.addQuery('sys_id', current.u_requested_item);
grRITM.query();
if (grRITM.next()) {
grRITM.variables.package_description = current.u_package_description
grRITM.update();
}
}
})(current, previous);