Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Setting location same as assigned to user location for a computer

sbhayani
Tera Contributor

Hello Experts,

We need to set "home location" for a computer CI to location of a user to whom it is assigned.

I see that, "assigned to" field is not a ref field to user table. in that case how can we set the value to what i need?

8 REPLIES 8

Brian Lancaster
Kilo Patron

Is your assigned to a custom field?  When I went into the OOB personal dev assigned to is a reference to the sys_user table.

My bad. yes its a ref to sys_user table.

Then it that cause you just need a after update business rule that set the location filed to the assigned_to.location.

Michael Ritchie
ServiceNow Employee
ServiceNow Employee

You can do this with a scriptless business rule:

find_real_file.png

 

 

Then on the actions tab, set:

find_real_file.png