Business rule updating two times.

shashanksha
Tera Contributor

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.

 

shashanksha_1-1737117360507.png

 

 

 

 

Thanks,
Shashank Sharma

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@shashanksha 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

@shashanksha 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@shashanksha 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

shashanksha
Tera Contributor

Hello @Ankur Bawiskar ,

 

That solution worked for me. Thanks a lot.

 

Thanks,

Shashank Sharma

@shashanksha 

Glad to help.

Please close your earlier question where I shared solution.

How to change the Additional Comment journal field Label with red color 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader