Hello Experts, How to set location field on alm_hardware, based on assigned_to (user)-location.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2024 12:16 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2024 02:48 AM
What will do the line 6th and in line 5th last .tostring()--?
What I need to keep there. any example
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2024 03:11 AM
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