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

Could you tell us why do you need to add the email content to additional comments?

 

Primarily for the service portal so that customers looking at incidents can still see messages sent using the email client but also so users can remove sent/received emails from their activity log and still see all relevant info.

Try identifying the email notification that fires right after the email client and set the email type to send-ignore

That will stop the email from being sent out though. Users generally only use the email client if they need to send an attachment or add an image, others have quick messages with HTML content.

I need the message from the email client to go out and the notification from the comment to be suppressed.

I meant to say set send-igonre to additional comments notification only if it is getting fired with email client functionality