I'm trying to setup a scheduled workflow which will send a notification to the owner team of all published knowledge articles which has passed expiration date.
Workflow works, saved search works, quick action works. But I want the workflow to be restricted from running in environment except production. In staging and uat the workflow shouldn't kick in. Or the workflow should at least not send the email.
The IF block does not contain system variables for me to use. The Scheduled Job does not contain any variables for me to use. So far the only way would be to put in an expression in the TO field of the email checking the system values and send the email only if A = B.
Anyone with a better suggestion?