I want to send notification when case work notes changes to test something like?

GOpi21
Tera Contributor

Hi All,

 

I want to send notification when case work_notes changes to test?

 

Can we achieve this?

 

Thanks,

Ram

 

6 REPLIES 6

Peter Bodelier
Giga Sage

Hi @GOpi21 

 

Create a Business Rule trigger: Work Notes = test

 

Use a script to trigger an event (create this first in event registry)

gs.eventQueue('<<event_name>>', current, '', '');

 

Trigger your notification based on that event.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

Hi Peter,

 

Thanks  for quick response..!

I tried to add condition in business rule but we don't have that option we have only one condition that is work_notes changes.

is there any other way to do that?

 

Thanks.

Hi @GOpi21 

 

Use changes in that case.

 

In script use 

if (current.work_notes.getJournalEntry(1).indexOf('test') > -1){

gs.eventQueue('<<event_name>>', current, '', '');

}

Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

Pavankumar_1
Mega Patron

Hi @GOpi21 ,

you can give condition as work notes changes and in advanced condition use script to check the value is test or not.

If work notes is test then give answer = true;

 

 

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar