Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Issue in Declarative Action Script

Community Alums
Not applicable

Hi All,

 @Brad Tilton

I had written one List Declarative Action where Implement as : Client script 

in Client Script i had written the below code in that GlideAjax Code was not working it was not triggering the script include only:

function onClick() {
    var myChecked = g_list.getChecked().toString();
    alert(myChecked);
    var query = "sys_idIN" + myChecked;
    alert(query);
    alert(g_list.getListName());
   var table = g_list.getListName();
    var ga = new GlideAjax('OutreachDelete');
    ga.addParam('sysparm_name', 'deleterecord');
    ga.addParam('sysparm_query', query);
    ga.addParam('sysparm_table', table);
    ga.getXMLAnswer(updateCampus);
     alert("script include");
    function updateCampus(answer) {
          // var clearvalue; // Stays Undefined
       alert(answer);
        if (answer) {
            alert("true");
            g_list.refresh();
        }
    }
}
 
please Go through the code , if their is any issue please reply.
 
Thanks,
siva
0 REPLIES 0