Script Creating Change Record but then Record is not Found
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2025 08:02 AM
I have a scripted web service used to create a change record. The script pulls values from JSON object and assigns to individual fields:
var grCHG = new GlideRecord('change_request');
grCHG.initialize();
grCHG.risk = dataJSON.risk;
grCHG.start_date = dataJSON.start_date;
grCHG.end_date = dataJSON.end_date;
grCHG.insert();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2025 06:42 AM
Hi @fcaruso123 ,
Whats the date format are you receiving? If you can share then i can give you the code.
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------