Make location inactive?

Heather White
Mega Guru

Good morning,

      Is there a way to make locations inactive in ServiceNow?   We imported current(updated) locations from AD and users now have the correct locations within their company.   However, the "old" locatoins are still available in the drop down menu.   We do not want users to see these depricated locations.

Thank you!

Heather

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Hi Heather,



Here's how I would handle this - without deleting any of the previous records, because deleting can cause issues with broken references.


  1. Create a new field on the location (cmn_location) called Active (u_active) and make it a true/false field.
  2. Make the locations you want to appear active (true) and those that you don't, leave unchecked.
  3. Create a before/query business rule that automatically filters for the active records only. Use the "user query" business rule as an example (substitute YOURINSTANCE for your instance name in the following URL
    1. https://YOURINSTANCE.service-now.com/nav_to.do?uri=sys_script.do?sys_id=62a7bfaf0a0a0a6500c49682bd82...

View solution in original post

21 REPLIES 21

Chuck Tomasi
Tera Patron

Hi Heather,



Here's how I would handle this - without deleting any of the previous records, because deleting can cause issues with broken references.


  1. Create a new field on the location (cmn_location) called Active (u_active) and make it a true/false field.
  2. Make the locations you want to appear active (true) and those that you don't, leave unchecked.
  3. Create a before/query business rule that automatically filters for the active records only. Use the "user query" business rule as an example (substitute YOURINSTANCE for your instance name in the following URL
    1. https://YOURINSTANCE.service-now.com/nav_to.do?uri=sys_script.do?sys_id=62a7bfaf0a0a0a6500c49682bd82...

Chuck,



I have a follow up question. You mentioned that we do not want to delete locations because it can cause issues with broken references. Are there any issues with renaming locations? Example: We had a location that was named OT/PT/Speech - The Speech clinic has moved to a different location. We have created a new location for the Speech department and would like to rename the original department OT/PT



Thank you for your help


Trish


Renaming location is fine, Trisha. There should be no issues there (outside of your own change processes to recognize the new name.)


Thank you.