6 Replies · Latest reply on Sep 28, 2017 8:02 AM by Martin Chabarria

    Accessing global script include from scoped app

      I am trying to do a simple GlideAjax from a scoped app, where I am calling a function in a global script include.


      Client Side

      function onSubmit()



      var date = g_form.getValue("date_var");

      var ga = new GlideAjax("MyInclude");


      ga.addParam("sysparm_name", "getThisWeek");

      ga.addParam("sysparm_ddate", date);



      function ajaxResponse(response) {

      var answer = response.responseXML.documentElement.getAttribute("answer");






      Script Include

      var MyInclude = Class.create();

      MyInclude.prototype = Object.extendsObject(AbstractAjaxProcessor, {


      getThisWeek: function(){

      gs.info('**mc: here i am');

      var ddate = this.getParameter('sysparm_ddate');


      if(ddate < gs.daysAgo(7)){

      return true;






      I am not getting any logs or errors, it just seems that it is not calling the include at all.