- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2022 09:01 AM
Hi,
I am trying to trigger a flow by using the "Record Created" trigger, then searching the table for the sysevent table. I have then added a condition to only run if it is an event with a specific name.
I did an example of what I am trying to do below. The condition is for when an event is created from an incident being inserted so I have specified the name to "incident.inserted". I have then set an action to send an email to me (in Dev), however, this will not run. ServiceNow does not seem to recognise this as a trigger. Of course, if I run a test from within the flow this works, but that is because it sets the trigger as true automatically.
Does anyone know how to set it so you can run a flow based on an event generated?
The flow I am using for work is using an event that we custom made, and is generated from a business rule using gs.eventQueue, just an FYI, but I don't think this would be the cause for the trigger not working in my flow??
Any help is much appreciated!!
Solved! Go to Solution.
- Labels:
-
Flow Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2022 11:26 AM
For my use case it need to start off from a event, what I posted was an example of what my flow is. For privacy I just did an example.
However, I have found the answer. It is something to do with when using gs.eventQueue, setWorkflow is set to false so setWorkflow(false). You need to create a property that sets this value to true like so:
Name: trigger_engine.ignore.set_workflow
Type: True
Value: True
Having this setup allows for "Record" triggers for "Create", "Create/Update", "Updated" for events to actually trigger.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2023 04:52 AM
I’ve tried looking for that table in the trigger and it doesn’t appear. I was able to get what I needed by moving my Flow to a Subflow and triggered the Subflow from a Script action. Curious what build your instance is on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2023 04:57 AM
I am also on Tokyo. When I initially set this up I was on Rome, however, as I mentioned above I just tried now and it still works with Tokyo. Let me quickly spin up a PDI and see if OOTB works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2023 05:09 AM
Just opened up a personal developer instance and OOTB for Tokyo allows me to find the table still. Are you able to show a screenshot? Otherwise, maybe you can raise a ticket with SN to see why you are not able to find this table. If you happy with your work around thats fair enough.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2023 08:41 AM
@Jacob23 Found that if I chose Global for the app scope, I can get to the sysevent table. Thanks for your time!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2022 09:25 AM
Hi,
Couple of things to note here to achieve your requirement:
Any specific reason why you want to trigger an email through a Flow here? As you are creating an Event using a BR so why can't you trigger it via a Notification module itself?
Reason for checking this it will also require against which instance you want the email to be sent? If your trigger condition is on Event Log table then unfortunately you cannot get the record sys id for which this need to be triggered.
Can you explain your use case to help you further.
Regards,
Shloke
Regards,
Shloke