USE of glide Ajax to auto populate the details of ci on incident but not working

Anjali yadav1
Tera Contributor

SCRIPT INCLUDE---

Anjaliyadav1_0-1721063229191.png

 

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

Zach Koch
Giga Sage
Giga Sage

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!