Create Incident Record producer while selecting contact phone details sometimes show wrong.

AshishD18291065
Tera Contributor

Create Incident Record producer while selecting contact phone details sometimes show wrong data in fields. And date get populate to fields from the client script. 

 function callbackdata(response) {
        var answer = response;
        var push = JSON.parse(answer); //setting user details into variables
            g_form.setValue('mobile_phone', push.mobile_phone);
            g_form.setValue('business_phone', push.phone);
    }
Both details are taking from the User table for the person who try to raise the incident ticket. Sometimes its show the correct data and sometimes its shows the wrong data for person who want to raise a ticket. Need to know why its working like this. Sometimes facing issue and sometimes no issue. 
5 REPLIES 5

maroon_byte
Mega Sage

Use no code option instead of glideajax for simple auto-population of catalog variables:

https://www.servicenow.com/community/itsm-articles/using-the-variable-auto-populate-feature-with-var...