Gatting record not found error after in record producer, after updating record by record producer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2024 08:13 PM
Hi Every one,
I am facing an record not found error(in record producer itself not in the targeted record )while submitting a record producer for updating an incident record, please help in this.
the record producer script and screen short as below.
var usrGR = new GlideRecord('incident');
usrGR.addQuery('sys_id', producer.incident);
usrGR.query();
if (usrGR.next()) {
usrGR.short_description = producer.comment;
usrGR.update();
}
gs.info(producer.comment);
current.setAbortAction(true);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2024 09:10 PM
Hi there,
Can you try to add a setRedirectURL, so it redirects to your updated incident and not to a new aborted incident?
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field