- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2025 02:50 AM
Hello Everyone
I have requirement to trigger the notification when work notes updated in sctask and it should have the below value then only it should trigger.
error message 'file share failed' and it should have incident number.
Please suggest me on this.
@Ankur Bawiskar
@SANDEEP DUTTA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2025 03:26 AM
I already shared how to check 1 value, enhance the logic to check for other
you can use this to print the work notes in email body, why email script is required?
Advanced notification condition
var worknotes = current.work_notes.getJournalEntry(1);
if(worknotes.indexOf('file share failed') > -1 && worknotes.indexOf('Incident number') > -1){
answer = true;
}
answer = false;
Email body:
${work_notes}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2025 06:11 AM
@Ankur Bawiskar below script not working please guide me on this. This script I am using in the advance script in the notification.
Condition: work notes -> Changes
For the reference attached screenshot, when incident and 'fail share failed' it has to trigger the notification.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2025 06:16 AM
what are you trying to search?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader