How can we automatically populate the Site field value based on the Caller field.

Ria
Tera Contributor

How can we automatically populate the Site field value based on the Caller field for a specific catalog item?

Currently, both the Caller and Site fields are populated automatically. However, if the caller's name is changed, the site value does not update accordingly.

25 REPLIES 25

Hi @Ankur Bawiskar 

 

Both Request on behalf of this user and Site fields are reference fields.

@Ria 

request on behalf -> refers to sys_user

Site variable refers to which table?

you can use the auto populate feature and no scripting required, it will work even when you change the user

Auto-populate a variable based on a reference type variable (Utah) 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hi @Ankur Bawiskar 

 

Site variable refers to location table.

@Ria 

Then it's simple

You can use the auto populate feature and no script required, it would bring the User's location and populate in Site variable

Auto-populate a variable based on a reference type variable (Utah) 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hi @Ankur Bawiskar 

 

In autopopulate, do we need to create a new variable? If yes, then we can't create a new variable. I want to use the existing field Request on behalf of this user. 

 

RiyaJain_1-1744189346475.png