Record Producer Will Not Update Existing Record - Only Create New Record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2025 09:54 AM
Hello,
I am trying to create a workflow/form in ServiceNow, where the form has about 6 questions.
What Configuration Item would you like to modify?
Then I have like 5 questions like Serial Number, Location, and MAC Address available to enter details.
I have tried using a Catalog Item to do this, but I have had no luck in trying to get the selected CI to be recognized by the flow.
I then tried a Record Producer, but it seems to only want to create a new record, and not modify an existing one, no matter what I do.
Is a Record Producer supposed to be able to modify existing records? This seems like it would be an easy thing to set up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2025 10:00 AM
you can use record producer to update as well.
Simply do this
1) in record producer script get the reference variable (pointing to existing record) and then update the record by using GlideRecord
2) then use current.setAbortAction(false) to stop the insertion
Using a record producer to update a record and not insert
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2025 08:07 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2025 01:14 PM
Below is what I am using. Unfortunately, I am at the mercy of ChatGPT, and it hasn't been doing well with this particular task. I have asked it to incorporate what you have mentioned and also what was mentioned in the link you shared. I originally was using alm_asset, but it is not able to find the CI even though I can see the CI for my device in the alm_asset table. I have also tried using cmdb_ci_computer and all classes under it to no avail.
I am now using just cmdb_ci because I have been unable to modify anything, and I just want it to recognize the selected CI, but I get "No Configuration Item Selected" error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2025 08:10 PM
Don't rely on ChatGPT. It sometimes give weird results.
are you using the correct variables from your record producer and correct field on table?
the link I shared has solution.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader