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.

Rich Dennis
Tera Expert

There may be times where processing a certain Inbound Email Action in sub-prod instances could result in workflows running in multiple instances. For example, you may have an Action that creates a new REQ/RITM. If the associated workflow includes running Powershell Activities that "touch" Active Directory users or groups you would have a race between instances for which one completes the activity first. 

To prevent this, add the following to the “Condition” field of the Inbound Email Action:

(gs.getProperty("instance_name")).indexOf("ABCDEV") == -1 && (gs.getProperty("instance_name")).indexOf("ABCTEST") == -1
Version history
Last update:
‎10-03-2018 12:34 PM
Updated by: