Business rule on sysevent table

pfeifn
Kilo Expert

I'm attempting to have certain events moved to other queues before insert based on the event names. It appears that business rules do not fire against the sysevent table save for the heartbeat event. Is there a work around for this?

 

1 ACCEPTED SOLUTION

I have heard back from ServiceNow. the gs.eventQueue and the workflow "Create an Event" activity insert into the event table in the background so they do not fire business rules by design. 

View solution in original post

5 REPLIES 5

Elczar Adame1
Tera Expert

Hi pfeifn,

I have tested it from my end by simply displaying a message in the Event list via a Business Rule and it is working fine. Or maybe, I don't understand your concern.

find_real_file.png

 

Hope this helps.

 

pfeifn
Kilo Expert

It works if you do it manually on the table's form. It does not work if the event fires through the gs.eventQueue function or via a workflow triggered event. 

Hi pfeifn,

Thank you for the clarification and it working from my end firing gs.eventQueue. Attached is a proof of testing:

Add Event Queue Script

find_real_file.png

Event Business Rule

find_real_file.png

Event

find_real_file.png

Log/Output

find_real_file.png

pfeifn
Kilo Expert

There may have been something lost in translation in my original post "save for the heartbeat event" means that the heartbeat event is the only one that it is working for, all other events are not firing the rule.

(thanks for the help either way)