How to set "Assigned to" field to empty in asset table when a employee state is Terminated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2020 12:47 PM
Hi,
Can someone tell be how to set Assigned to field to Empty if a user is terminated.
This i am asking to do in Asset table.
Basically, User left the company and he has so many assets assigned. The client need that we need to remove all the Assets from the user in servicenow Asset table when user record is terminated.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2020 12:56 PM
HI,
instead of clearValue use grCI.setValue('assigned_to','');
Thanks,
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2020 01:01 PM
Just from a process perspective - where are those assets? If the user has left the company or transitioned from the company; at that point the asset should have been picked up and the asset updated via that process? If it was missed; maybe the process should be to update the assigned to to the manager of the old assigned to.
Just a thought prior to just clearing out that value.
-Akash

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2020 05:03 PM
Hi nishtha,
While the scripting to complete this update is rather straight forward, you really should speak to the process as
I encourage you to not just create functionality for your customer in ServiceNow but also provide strong consulting value and encourage the customer to consider process as well.
Daniel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2020 04:31 AM
Hi Daniel,
Thank a lot!
So we have a request item for termination, if want that once the request item is close complete, then want the asset -> assigned t field to empty.
According to them they want us to write a script in workflow which will automatically set asset-> assigned to field to empty.
could you plz help now on this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2020 04:32 AM
Thank a lot!
So we have a request item for termination, if want that once the request item is close complete, then want the asset -> assigned t field to empty.
According to them they want us to write a script in workflow which will automatically set asset-> assigned to field to empty.
could you plz help now on this?