In Business rule how to add the condition if worknote contains xyz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 07:12 AM
A business rule in incindet table needs to be run when the worknotes contain xyz
How can we achive this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 08:22 AM - edited 10-20-2023 08:23 AM
Select the "Work notes" field in your condition.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 08:39 AM
Hi
you can try below code to identify the 'xyz' in worknotes
var getWorknotes = current.work_notes.getJournalEntry(1); // last updated worknotes
getWorknotes.contains('xyz'); // return true if it contains xyx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 09:37 AM - edited 10-20-2023 09:37 AM
Hello @JPSS ,
You can write condition in the advanced section of business rule.
current.work_notes.getJournalEntry(-1).contains('xyz') == true
Please refer to below screenshot:-
Please Mark my answer Helpful & Accepted if I have answered your question.
Thanks,
Alka