Autopopulate default value

Rosy14
Tera Guru

I want to auto populate th's company number as default value logged in user's comany number.

below are not working.

javascript:gs.getUser().getCompanyID().number;

 

javascript:gs.getUser().getCompanyRecord().number;

4 REPLIES 4

Anurag Tripathi
Mega Patron
Mega Patron

Hi Rosy,

 

I don't think company table has a number field on it, can you try to confirm the field name you are trying to print.

-Anurag

AnuragTripathi_0-1720453909030.png

 

-Anurag

SN_Learn
Kilo Patron
Kilo Patron

Hi @Rosy14 ,

 

In the [core_company] table there is no number field. Could you please share some screenshots for reference?

 

You can try:

gs.getUser().getRecord().getValue('number');

Make sure, number is a valid field

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.

Sandeep Rajput
Tera Patron
Tera Patron

@Rosy14 Company table doesn't have a number field on it.