The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Hello Experts, How to set location field on alm_hardware, based on assigned_to (user)-location.

mastan babu ko1
Tera Contributor

how to create the fix script to set location field on alm_hardware, based on assigned_to (user)-location. We need to update that perticular location.

6 REPLIES 6

What will do the line 6th and in line 5th last .tostring()--?
What I need to keep there. any example 

Hi @mastan babu ko1 ,

 

Usually the type differs when we try to fetch a value n store it in a variable. It works well when the type is String hence while fetching the location value which will return sys id we are converting it to String.

 

& setWorkflow(false) will stop any other script from executing when the update happens via this script.

There can be a possibility there is some Business Rule which executes on update of that record hence to stop it from execution we use setWorkflow(false).

 

Thanks,

Danish