A new knowledge base article has been published on our support portal.
In this scenario you need to validate that the user enters in a valid US state in its 2 character format. In previous versions of CRM you would normally just add a picklist with all the valid values but the new composite control in CRM 2013 does not allow this so this validation formula is very useful. Note that as we are running this formula server-side this validation rule holds true for data imports, custom API code that may be inserting or update the account record or any workflows, dialogs or actions that may run.
N52 Formula Manager Solution
The Formula Manager solution works like this,
- A server-side validation rule is created to enforce data quality
- The value in the address1_state field is checked to see if it is in a list of values
- If it is not in the list of values then it stops the create or update of the account record & returns an error message