catalog item

Shrabanti
Tera Contributor

Shrabanti_0-1700126076719.png

on change of gid, email and first/last name should auto populate from user table in catalog item

1 ACCEPTED SOLUTION

Hi @Shrabanti ,

In email variable there is auto populate table select dependent field as GID and dot walk path email for email variable and for first name variable use first name.
Make sure both first name and email type not reference make it to single line text the only it will work.

AnandKumarP_0-1700127736441.png

Thanks,

Anand

 

View solution in original post

5 REPLIES 5

GlideFather
Tera Patron

Create a onChange client script to be applied when the value in GID is changed.

https://www.servicenow.com/community/itsm-articles/on-change-client-side-scripting-scenarios/ta-p/23...

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Anand Kumar P
Giga Patron
Giga Patron

Hi @Shrabanti ,

GID field is reference to which table?
What exactly you want to populate in First Name/Last Name?
 And why you created First Name/Last Name as reference field as sys_user table first name and last name is string field.

Thanks,

Anand

hello @Anand Kumar P 

GID field is reference to which table?

sys_user table
What exactly you want to populate in First Name/Last Name?

first name of user from user table
 And why you created First Name/Last Name as reference field as sys_user table first name and last name is string field.

 as per Recruitment they asked to make it reference field


Thanks,

Shrabanti

Hi @Shrabanti ,

In email variable there is auto populate table select dependent field as GID and dot walk path email for email variable and for first name variable use first name.
Make sure both first name and email type not reference make it to single line text the only it will work.

AnandKumarP_0-1700127736441.png

Thanks,

Anand