Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2025 04:08 AM
Why not use after insert business rule on sc_req_item table and handle this and it will work for all RITMs whose catalog item has that variable?
Ensure choice values are same between the variable and field on RITM
(function executeRule(current, previous /*null when async*/) {
// Add your code here
current.fieldName = current.variables.variableName;
current.setWorkflow(false);
current.update();
})(current, previous);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Regards,
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader