Service Catalog auto populate a phone number

itspezi1
Tera Guru

Hi Team,

How can populate the phone number of the logged in user in catalog? Which table must be specified as a reference for the catalog item (variable)?

what is best practice?

regards,

 

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

Hi,

 

Instead of referencing any table you can pass default value for the phone number variable as below

javascript: gs.getUser().getRecord().getValue('phone');

where phone is the Business phone from User table

 

View solution in original post

10 REPLIES 10

Hi,

 

If you want to get the location of logged in user then you can use the below code in default value.

javascript:gs.getUser().getRecord().getDisplayValue('location');

 

Please mark Helpful and Correct based on Impact.

Regards

Nikhil