gs.getUser().getCompanyID(); gives underdefined output on Incident table after WC upgrade

soumyadaggula
Tera Contributor

Hi Team , 

We have upgraded our instance to WC , and we noticed that Company field on Incident form auto populating as undefined , in default value this is the code 
" javascript: if(current.sys_class_name=='problem')gs.getUser().getCompanyID(); "

soumyadaggula_0-1726225104282.png

what could be the issue here ?

 

5 REPLIES 5

@Sandeep Rajput Hello Sandeep , 
I actually figured it out that there is an Onload client script that is running for Company filed .

But really thank you for your response.