Need help on Script include calling multiple functions

shaik_irfan
Tera Guru

Hi,

I am calling a Script include in the UI Action, multiple times which is not working

 

var SI = new global.userUtils();

SI.validateRole();

SI.updateRoles();

 

Above is not working

If i write something like below it is working

var SI = new global.userUtils();

SI.validateRole();

 

var SII = new global.userUtils();

SII.updateRoles();

 

1 ACCEPTED SOLUTION

Milind Gharte
Kilo Guru

Hi ,
Here is a link which will help you.

https://community.servicenow.com/community?id=community_question&sys_id=01718c2ddb8ba3407d3e02d5ca96...

 

If it helps,Please mark Correct and  Helpful.

Warm Regards,

Milind

View solution in original post

2 REPLIES 2

Mike Patel
Tera Sage

Can you share screenshot of SI and UI Action?

Milind Gharte
Kilo Guru

Hi ,
Here is a link which will help you.

https://community.servicenow.com/community?id=community_question&sys_id=01718c2ddb8ba3407d3e02d5ca96...

 

If it helps,Please mark Correct and  Helpful.

Warm Regards,

Milind