Advanced Condition on Notification : Do not send of work_notes contains...

kevinthury
Tera Guru

We have a Notification that will send if conditions are:

  1. Active is True
  2. Assigned_to is not empty
  3. Work Notes changes

We have been asked to modify these conditions and suppress the Notification from sending if the recently added work notes contain a specif phrase that is entered by a integration.

I'm testing the possibility as seen in the image below, but I cannot prevent the notification from sending.  I suspect the Advanced Condition is not entered correctly.  Any suggestions?

 

find_real_file.png

1 ACCEPTED SOLUTION

I believe I have something for you. Try:

 

var worknote = current.work_notes.getJournalEntry(1);
if (worknote.toLowerCase.indexOf("Case record TCN Integration") > -1) {
answer = false;
}

We needed to grab the last work note first, then check for the phrase.

Try that!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

7 REPLIES 7

I believe I have something for you. Try:

 

var worknote = current.work_notes.getJournalEntry(1);
if (worknote.toLowerCase.indexOf("Case record TCN Integration") > -1) {
answer = false;
}

We needed to grab the last work note first, then check for the phrase.

Try that!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

kevinthury
Tera Guru

Thanks Allen!  I had to make a slight change to your script, but you provided the base and got us on the right track to success.    Here is the final script:

 

find_real_file.png

Nicely done! Glad you got it working!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!