I want to show a warning message is the shipping country is NOT United States when creating or editing Sales Orders. I created a workflow with these parameters:
Record Type Transaction (Sales Order)
Description If the shipping country is not US, show a warning.
Inactive No
Release Status Testing
Initiation Event Based
Events On Create, On View Or Update
Trigger Type Before Record Submit
For the action, I have tried this:
Type Show Message
Trigger On After Field Edit
Context User Interface
Triggering Client Fields Ship To, Ship To Address
Condition Shipping Address does not contain United States (I could not find Shipping Country field specifically)
To test it, I edited a Sales Order. I changed the shipping address to somewhere in Vietnam. I did not see any messages. In the Sales Order's Workflow History I see the workflow name with this log entry:
Workflow initiated
Running ONENTRY trigger under BEFORESUBMIT (Event: EDIT; Context: USERINTERFACE)
Workflow finished
Does this mean the field editing did not trigger anything?