catalog

Deepika Ravindr
Tera Contributor
 
1 ACCEPTED SOLUTION

@Deepika Ravindr 

 

Please check the below screenshot, this is a entry from live_notification table, for every mentioned name in the worknotes/comments it will make a entry in that table

 

PrinceArora_0-1695539617189.png

 

You can see "field_name" as work_notes and this email script is working on the table "live_notification", please add a check in your email script:

 

if(current.field_name == "work_notes"){

//Execute your  worknotes template here OR customise message OR if you want to make it specific for a table you can also add a table check above

}else{

// you can execute normal execution whatever was present earlier

}

 

I hope you understand!

 

If my answer solved your issue, please mark my answer as  Correct & 👍Helpful based on the Impact.

View solution in original post

11 REPLIES 11

Prince Arora
Tera Sage
Tera Sage

@Deepika Ravindr 

 

Email which is getting triggered when someone has mentioned in worknotes/comments is this

 

PrinceArora_0-1695531441798.png

 

You can open this notification and it is calling an email script as below:

 

PrinceArora_1-1695531486264.png

 

 

Open the email script and edit the content as mentioned by the below link:

As per your scenario please replace 

recordGR.comments.getJournalEntry(1)

TO

recordGR.worknotes.getJournalEntry(1)

https://www.servicenow.com/community/now-platform-forum/for-the-activity-stream-mention-email-notifi...

 

If my answer solved your issue, please mark my answer as  Correct & 👍Helpful based on the Impact.

 

 

working

@Deepika Ravindr 

 

Can you please share screenshot of your email script 

@Deepika Ravindr 

 

Ah!

I believe we are making a small mistake 

Please update the code as

 

recordGR.work_notes.getJournalEntry(1)

 

If my answer solved your issue, please mark my answer as  Correct & 👍Helpful based on the Impact.