Based on the Opened for i want to use the onLoad script to auto populate the values

kranthi2
Tera Expert

Hi,

Based on the Opened for i want to auto populate the Issue location, CCID, Simphony ID which are part of User table

 

here the condition would be i want to use only onLoad() client script, because i have used the auto populate option to populate but while i am impersonation or login as a user it is not working.

 

kranthi2_0-1705630930324.png

 

please advise how to create it by using the onLoad() client script

 

Thanks,

 

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@kranthi2 

auto populate should work in that case as well.

with which user you are doing the testing? they should probably should have read access to the table

Are you trying with snc_external user?

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

Yes correct.

Basically my aim is to if i login as a end user for example snc_internal user then he/she their details needs to be fill in the Issue location, CCID, Simphony ID

Thanks,

@kranthi2 

which information is not getting populated?

you can always use default value in the variable? Issue location, CCID, Simphony ID are coming from user record?

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

Issue location, CCID, Simphony ID not getting populated but if i on change of user details in the opened for then it is working fine.

 

I need to write a onLoad client script.

 

Thanks,