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.

service portal widget in scope application not read input Verbals

kiran1232
Tera Contributor

so in service portal , I have one widget which shows data in html get data from ServiceNow table but when we call 

c.server.update();

but I have custom scope it not working but it works in global scope 

 

client script 
c.data.action="action";
c.server.update(function() {
})
 
server script
 if(input.action=="action"){
gs.addInfoMessage("kiran kadam");
}
but if, I run same code in global scope it works fine.
there is any difference in global scope and custom scope 
1 REPLY 1

Damini Sheth
Tera Contributor

Hi,

You can try $scope , may be it will help.

Please mark this response as correct or helpful if it assisted you with your question.