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.

AetCatalogTaskHelper Undefined,May be missing global qualifier

ankitapatnaik
Tera Contributor

Hi,

 

I have a scriptinclude AetCatalogTaskHelper, one of my catalog item has referenced to this script include in Global scope,But catalog item is in another scope. Below is the code for script include:
var AetCatalogTaskHelper = class.create();

AetCatalogTaskHelper.prototype = {

initialize : function() {

},

getClosedCanceledText  :function() { ;

 

var cancelText = '';

cancelText = ".........set the info message";

return cancelText ;

}

type: 'AetCatalogTaskHelper'

};

Please suggest me the solution for this error

5 REPLIES 5

What does your reference qualifier or script where this is called look like?  Are you using Service Portal or the native UI?