- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2025 05:37 AM - edited ‎04-30-2025 07:05 AM
Hello devs,
I encountered an Current.Update() in a Out of the Box Before type Bussiness rule (named MIM Candidate to Case) of the Major Issue Management application:
Is this code correct? I was told that Current.Update() in a Before BR can cause errors.
Regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2025 05:47 AM
yes it's an OOTB business rule and has current.update() in before business rule.
This is not best practice which ServiceNow tells but you will find a lot of components which are OOTB which don't follow these best practices.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2025 06:24 AM
@jmmatas This is super weird and not inline with the best practices. You should raise a case with ServiceNow support and bring this to their notice as this will cause multiple updates on the record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2025 06:46 AM
We're on Xanadu, and so is my PDI.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2025 06:57 AM
It seems then that was fixed in Xanadu version already.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2025 07:05 AM
Apologies, there is a typo in the plugin. The correct one is Major Issues Management.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2025 07:07 AM
Ah! That makes more sense. I don't have that one installed. 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2025 05:45 AM
@jmmatas Using current. Update() inside a "Before business rule" like in the example shown , is not recommended and can cause issues.
if you need to make changes to the record before its saved , just use current.setValue() , so that snow will save those changes automatically ..
disadvantages of using current .update is
it will make recursive updates , duplicate writes and it can also negatively impact performance.
