- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2025 07:22 AM
Hello Everyone
I have requirement when Sc_task's work note updated and if it contains the text ' file creation failed' need to create the incident using flow designer.
I tried it but its not working as expected can you please help me on that and have look at below screen shot.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2025 07:57 AM
First ensure the string entered in the condition exactly matches what is typed into the work note in your test case (case-sensitive).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2025 07:57 AM
Hi @Vinod S Patil,
Try this:
Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2025 04:29 AM
@miftikhar20
I need to put the condition only for one catalog item, any suggest please.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2025 04:58 AM - edited 10-08-2025 05:06 AM
work_notes field type is sys_journal_field, and there is special about on sys_journal_field, the contains operator won't work, please read the details below.
- Use the sys_journal_field table.
- Query for the specific element_id (the sys_id of the record with the journal entries) and the name of the field (e.g., comments).
- Then, you can check if the value field of the journal entry contains your desired text.
var gr = new GlideRecord('sys_journal_field'); gr.addQuery('element_id', current.sys_id); //
Or the sys_id of the record you are working on
gr.addQuery('element', 'comments');
// Or 'work_notes'gr.addQuery('value', 'CONTAINS', 'Your Search Term');
// Apply the contains operator heregr.query();if (gr.next()) { // A matching entry was found}
work notes is type of Journal Entry [sys_journal_field] and the contains operator won't work with the this type of field, you need to use the conditions I have sent. The contains operator though available but won't work with Journal entry type field.
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.