Flow Designer - Trigger on certain phrase in Additional Comments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2023 09:09 AM
Greetings
I've got a pretty simple use case, at least I thought it would be.
I want to trigger an action in Flow Designer whenever someone enters a certain keyword into the "Additional Comments" field for Incidents.
I've got a basic flow setup with an If statement, and a second action that just says "I saw your update".
For the IF statement, I can't figure out how to make this work. For example, I want to this to trigger if someone enters "my-keyword" anywhere in their comment.
When building this in Flow Designer, there's two "pills" I've tried, Incident.Additional_Comments and "Changed Fields". For each of them I've just tried to say "contains "my-keyword" and for the life of me I can't get it to work. Looking at the tests/outputs and it's always evaluating to false..
I'd appreciate any assistance on getting this to work.
- Labels:
-
flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 05:49 AM - edited 07-20-2023 05:51 AM
Hello @ChadDa3mon ,
Generally, 'Additional comments' for the incident table get saved in the sys_audit table in ServiceNow. So please try adding trigger conditions like this:
Now, in the actions section, add an 'if condition' to check if the Additional Comment contains "my-keyword" like this:
After that, add other actions as per your requirement.
To understand the Flow Designer with an Example, refer to this.
If this helped you in any way, please hit the like button/mark it helpful. So it will help others to get the correct solution.
regards,
Prasad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 05:22 AM
Hi @ChadDa3mon ,
Did you get a chance to review my response?
Was my answer correct? Did you implement it?
So as to help others in the community, please mark my answer as correct and/or helpful.
Thanks,
Prasad