Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

business rule not running after inbound action

cflloyd1
Mega Contributor

I have an inbound action that adds a work note to my incident containing the email content when the subject of the email contains "work note added". I can confirm that this works. I also have a business rule that runs when my incident gets a work note. Technically, the business rule runs on the sys_journal_field table when the journal record gets added. The business rule runs correctly when a work note gets added manually to the incident form. The problem is when the incident gets the work note generated by the inbound action, the business rule is ignored. I think it may have something to do with the fact that both the inbound action and business rule are running at the same time. Any ideas?

1 ACCEPTED SOLUTION

cflloyd1
Mega Contributor

I found the problem. It was pretty obvious. The condition on the business rule contained "gs.getSession().isInteractive()" which looks for a transaction generated from a user session. The inbound action doesn't meet that condition.

View solution in original post

3 REPLIES 3

Mike Patel
Tera Sage

Can you share business rule screenshot.

cflloyd1
Mega Contributor

I found the problem. It was pretty obvious. The condition on the business rule contained "gs.getSession().isInteractive()" which looks for a transaction generated from a user session. The inbound action doesn't meet that condition.

Yap, That's what I wanted to check on screenshot.