business rules is not working without current.update
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2024 02:06 AM
insert and update business rule not working without current.update syntax in servicenow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2024 03:03 AM
Hi @krishnaredd
What type of Business Rule are you trying before or after?
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.
********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect
Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2024 03:07 AM
If it is a before BR it will work.
After BR wont work without it but you should not update the current record in after BR.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2024 05:18 AM
We are using the After Insert and update BR to push some of the form field's value into one field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2024 05:55 AM - edited ‎12-02-2024 05:57 AM
Hi @krishnaredd ,
Avoid current. update()
Try Glide to that Record table and update the record.
current.setWorkflow(false); // Prevents recursive triggers
current.update();