Adding comments with setWorkflow(false)

Dubz
Mega Sage

Hi All,

I'm trying to add comments to a task form without them triggering a notification but if i use setWorkflow(false) it doesn't run the necessary rules to link the sys_journal_field record to the task form with the requisite sys_audit and sys_history_line records.

Does anyone know of a way to do this?

Cheers

Dave

1 ACCEPTED SOLUTION

Dubz
Mega Sage

Ended up just adding an advanced condition into the incident updated for ess notification to suppress the notification when it sees a string value i'm adding into the comment when i add the email body.

Documented the whole thing as below just in case anyone else is interested.

https://community.servicenow.com/community?id=community_article&sys_id=44ce5c051b718810a59033f2cd4bc...

View solution in original post

16 REPLIES 16

This is great! Thank you 🙂

I've used this as a base to fix something I was trying to do. I can't help but feel though that writing direct to those tables, in that manner will come back to bite me is the a*** at some stage..