...
Code Block |
---|
DEFAULT{ Action=SetVar; VarName=Order_Id; VarValue=@@CurrentObjectIdId; | Action=SqlQuery; QueryString=SELECT Id FROM Order__c WHERE Id = '%%Order_Id%%' AND Status__c IN ('Cleared','Finalized'); QueryReturnFields=@@QueryCount; QueryTest=%%QueryCount%%=0; QueryTestTrue=SUCCESS; | Action=Alert; Message=Update is not allowed on Orders with status finalized, or cleared.; } SUCCESS { } |
...