Client script is not working for specific users

Sriramachandra1
Kilo Contributor

Hi Team,

 

i have created customer changes record producer for change req mgmnt

i have created a  catalog client script to load put some values

i have written alert to check that script is reachable or not

 

i found issue with some users and a pattern

if i create a user in sys_user table and assign company and " itil "and "snc internal role" --client script is working fine

 

when i'm creating user from core_copmany giving same roles was not able to access client script

 

note: Both users are having same roles same company

 

it  simple client script nothing complex

consider   only one line of code  alert("reacgeble load script");

can anyone help me overcome the issue

@Ankur Bawiskar @Sandeep Dutta @Mark Roethof 

17 REPLIES 17

it is onload catalog client script 

client script is not working 

and client script is not reachable for that users

Hi,

your requirement is not clear.

you are sending company value to script include but not using it?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

hey ankur

ignore about script include and all

 

i have written now onload client script 

 

with below code

function onLoad() {

alert("checking users to can access this svcript");

}

 

 

and it is working for admin and type1 users mentioned in question and type2 user not able reach the alert code

 

 

Hi,

is the other user having access to the form?

can you share the form screenshot?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

find_real_file.png