Prevent sub-prod instances from processing certain inbound email actions
Import
·
Oct 03, 2018
·
article
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
View original source
https://www.servicenow.com/community/now-platform-articles/prevent-sub-prod-instances-from-processing-certain-inbound-email/ta-p/2297362