USE of glide Ajax to auto populate the details of ci on incident but not working
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2024 10:08 AM
SCRIPT INCLUDE---
CLIENT SCRIPT--- on change ci field
var ga = new GlideAjax('ourInccallerDetails');
ga.addParam('sysparm_name','getOurIncCiDetails');
ga.addParam('sysparm_ourCi',g_form.getValue('u_configuration_item'));
ga.getXMLAnswer(getCIdetails);
function getCIdetails(Ci)
{
var CiObj=JSON.parse(Ci);
g_form.setValue('u_asset_tag',CiObj.tag);
g_form.setValue('u_serial_number',CiObj.serial);
}
pls correct my error
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2024 11:06 AM
I would start by troubleshooting and see what data you have on the call. Can you confirm you are passing the correct info in the Ajax call, then confirm a GlideRecord is being found in the Script Include query, then confirm the Obj you are about to return has the correct data, then on the client side confirm what is being returned?
If this information helped resolve your issue, please remember to mark response correct and thumbs up to help future community members on this information, thanks!