Emails should not trigger when child task comments added to parent task

Community Alums
Not applicable

Hi,

Currently I have Parent task and child tasks associated to parent, when comments added to child task they will be copied to parent task and on Parent task I have a email notification configured when comments changed. Here my requirement is when child task comments added to parent email should not trigger only when comments added directly to the parent task then only notifications should trigger. Is there a way to achieve this? Please advice.

 

Regards,

Prudhvi 

2 ACCEPTED SOLUTIONS

GopikaP
Mega Sage

Hi @Community Alums , how are you triggering the notification? If it is through an event or business rule, you can add - 'setWorkflow(false)' in your business rule that is copying your comments from the child to parent record. But if it is triggered directly from the notification conditions, I guess we cannot prevent the notification.

 

Email Notifications Not being Fired due to setWorkflow(false) or setUseEngines(false) - Support and Troubleshooting

View solution in original post

@Community Alums 

when you use that it won't trigger any after update business rule, notifications, workflows, flows etc

So please discuss with your customer for this
OR

Try adding some unique comments like "Comments from child" and then determine this in notification condition so that it doesn't send email when comments gets added from child business rule

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

9 REPLIES 9

GopikaP
Mega Sage

Hi @Community Alums , how are you triggering the notification? If it is through an event or business rule, you can add - 'setWorkflow(false)' in your business rule that is copying your comments from the child to parent record. But if it is triggered directly from the notification conditions, I guess we cannot prevent the notification.

 

Email Notifications Not being Fired due to setWorkflow(false) or setUseEngines(false) - Support and Troubleshooting

Hi @GopikaP ,

 

This can also be a work around but it will also hamper other things like updated_by information or may be more workflows or BR not just only the BR written to trigger the eventQueue for notification.

 

Regards,

Rohit 

Ankur Bawiskar
Tera Patron
Tera Patron

@Community Alums 

if you are adding the comments to Parent via business rule then you can use setWorkflow(false) to avoid sending notifications.

Please share how are you updating comments to Parent from child?

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

Community Alums
Not applicable

Hi @Ankur Bawiskar, I am adding comments to Parent task by BR. using setWorkflow(false) will have any impact?

@Community Alums 

when you use that it won't trigger any after update business rule, notifications, workflows, flows etc

So please discuss with your customer for this
OR

Try adding some unique comments like "Comments from child" and then determine this in notification condition so that it doesn't send email when comments gets added from child business rule

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