additional comments are not captured when update filed values via business rules
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2024 04:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2024 07:06 AM
comments updated, but emails got trigger two times, because of current.update();
if i added this line(current.setWorkflow(false)), comments not updating, Email triggering one time(state is active -> email triggering)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2024 05:45 AM
Hi @hemanth810620 ,
Try like this.
// Temporarily disable workflows for controlled updates
current.setWorkflow(false);
current.setForceUpdate(true); // Force the update to log changes
current.update();
// Re-enable workflows after update
current.setWorkflow(true);
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2024 06:42 AM
Not working
State updated but comments are not updated