- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-17-2025 04:29 AM - edited ā01-17-2025 04:36 AM
My requirement is to when someone is assigned to a SC_TASK and state is work in progress then automatically update the additional comments with a statement "Your task <task number> has been assigned to <so and so person>. This is done but on every state we are making additional commnets mandatory , so when we changing assigned to person and state is work in progress , comments filed comes as mandatory, user need to fill on that, and save it..Business rule i created to automatically update the additional comments with a statement "Your task <task number> has been assigned to <so and so person>. but it was updating this message plus what i entered on comments field. Please fin the attachment. Any help would be appreciated.
Thanks,
Shashank Sharma
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-17-2025 04:53 AM
because it's a before update BR it might be appending the message and clubbing them together.
I believe you want both the comments separately as 1 is entered by system and other by person
Why not handle this via flow which is asynchronous?
Create a flow with same filter condition on Update and set the work notes.
This will help you resolve your issue.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-17-2025 04:34 AM - edited ā01-17-2025 04:37 AM
Hi @shashanksha ,
If you are using before BR current.update() not required. or Check for other business rules on sc_task table Assigned to changes and script using current.update().
If my response helped, please mark it as the accepted solution ā
and give a thumbs upš.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-17-2025 04:34 AM
Hi @shashanksha .
I believe you have written After Business rule and current.update().
So, the record is saving and updating again from the business rule.
Can you check by using Before Business rule.
If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-17-2025 04:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-17-2025 04:42 AM - edited ā01-17-2025 04:43 AM
Hi @shashanksha ,
I could see this from ServiceNow
https://www.servicenow.com/docs/bundle/xanadu-release-notes/page/release-notes/quality/xanadu-patch-...
If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmuddin.