Will a business rule and a flow fire for the sysevent table?

Runel
Giga Expert

I had to create a new event to be fired by a BR and a flow because the OOB event (i.e., external.authentication.failed) does not exist in the event registry and cannot be selected for the script action.

 

The BR and the flow on the sysevent table are firing for me (admin) but not for other users (i.e., snc_internal & snc_external).  The BR and flow fire an event to be processed by a script action.  The BR and flow has no roles assigned to them.  The sysevent table ACLs are OOB.

For clarity, "external.authentication.failed" is not found in the event registry and therefore cannot be selected in the script action. Because of that, I have to fire a new event from a BR and a flow.  The filter conditions are sysevent.name is external.authentication.failed. If condition is met, then fire the new event which will be processed by a script action.  

1 ACCEPTED SOLUTION

@M Iftikhar,

 

Your response made me think of renaming the event I created to external.authentication.failed.  After I did that the script action executes for all users.  THANK YOU!

View solution in original post

6 REPLIES 6

@Ankur Bawiskar,

 

Yes, the flow was configured to run as System User and the conditions were being met when I ran the BR and flow.

Bhuvan
Mega Patron

@Runel 

 

Why do you need to create Flow for firing an event ? 

 

Go to Filter Navigator → System Policy → Events → Registry and create a new registry to be used with Business Rule

 

Go to Filter Navigator → System Policy → Events → Script Actions and create a script action to be used with Business Rule

 

Go to Filter Navigator → System Definition → Business Rules and create a new business rule to create event queue

 

https://www.servicenow.com/docs/bundle/zurich-platform-administration/page/administer/platform-event...

 

If you need to use Flow, check if the Flow is set to Run as System user or Run as User who initiated the sessions and make necessary changes.

 

If this helped to answer your query, please mark it helpful & accept the solution. 

 

Thanks,

Bhuvan