How to make some field empty through Business Rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2023 04:25 AM
Through business rule I want to make some fields empty, so how can we do this.
(i) Through action --section
(ii) Through the code--in Advance section
If through code--please help with the code.
Thanks in Advance
Utsav

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2023 04:33 AM
Hi,
You can do with the options you commented above. Please help confirm exact use case.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2023 04:49 AM
Hi,
Just like Jaspal mentioned above, no code is needed.
Attaching image to show example.
But if you need to code for some reason, that will also be doable.
Example below.
(function executeRule(current, previous /*null when async*/) {
current.setValue('some_field_name', '');
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2023 09:50 AM
Thankyou @OlaN @Jaspal Singh
It works!!