- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2018 06:31 AM
Hi Developers,
I have a choice field Result(Dropdown with --None--) with three choices(A,B,C) which are being set after a incident is resolved based on certain condition through script(Business Rule)
If the incident is reopened then the field Result should be cleared/reset back to --None--.
Can any one help me out?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2018 06:45 AM
Hi,
creates a BR before update that is executed when the state changes from resolved to open (or other states that interest you).
current.fieldName = '';
Please mark this as "Correct Answer" if I have given you a sufficient answer to your question.
Best Regards,
Daniele

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2019 10:55 PM
Hi Daniele,
How can we achieve this through run script in workflow.
After if condition in workflow in run script clear the value of a choice field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2019 11:04 PM
If your workflow is attached on the same wher your choice field is available then in run script you can add the same code given by daniel,
if(STATE_CONDTION){
current.fieldName = '';
}
Thanks!
Abhishek Gardade
Abhishek Gardade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2020 03:34 AM
For anyone who finds this post first in future (like I did)...
This method won't work when using GlideRecord with updateMultiple().
e.g. the following won't work...
gr.setValue('fieldName', '');
gr.updateMultiple();
You need to use...
gr.setValue('fieldName', 'NULL');
gr.updateMultiple();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2022 09:53 AM
Thank you Andy Hopper!
This was exactly what I needed.