error when updating a RITM manually
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Friday
When i attempt to update a RITM manually. I get the following error message.
There is an existing flow that will set the state of the RITM to closed complete or Closed incomplete based on 2 approvals. There is no update record action to set the assignment group field based on the requirements. And those fields mentioned in the error message are populated. The user acknowledgement is a check box, and it was checked. Any thoughts on where to look?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Friday
@oluseyiasol - what are you updating manually - RITM state? or other fields?
Can you make sure these two variables are filled while updating 1.User Agreement Acknowledgement 1. Disclaimer
flow shouldn't impact manual update here, there could be client side validations..
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025,2026
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Friday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Friday
Hello @oluseyiasol
Seems like this is a custom error message that is being executed when trying to save the ritm.
Run below (modify as per the fields):
var grRITM = new GlideRecord('sc_req_item');
grRITM.get('YOUR_RITM_SYS_ID'); //update it
gs.info('RITM FIELD VALUES');
gs.info('State: [' + grRITM.state + '] Display: [' + grRITM.state.getDisplayValue() + ']');
gs.info('Assignment grRITMoup sys_id: [' + grRITM.assignment_grRITMoup + ']');
gs.info('Assignment grRITMoup display: [' + grRITM.assignment_grRITMoup.getDisplayValue() + ']');
gs.info('Assigned To sys_id: [' + grRITM.assigned_to + ']');
gs.info('Close Notes: [' + grRITM.close_notes + ']');
gs.info('Close Code: [' + grRITM.close_code + ']');
gs.info('Closed By: [' + grRITM.closed_by + ']');
gs.info('Short Description: [' + grRITM.short_description + ']');
gs.info('Approval: [' + grRITM.approval + ']');
// Check variables
gs.info('VARIABLES VALUES');
var varsVal = new GlideRecord('sc_item_option_mtom');
varsVal.addQuery('request_item', grRITM.sys_id);
varsVal.query();
while (varsVal.next()) {
var opt = varsVal.sc_item_option.getRefRecord();
gs.info('Variable: ' + opt.item_option_new.getDisplayValue() + ' = [' + opt.value + ']');
}
Hope that helps!