Account object I have a field called
Postal Zip Code. If
Postal Zip Code is more than 5 characters long (e.g.
"12345678"), I have to truncate to 5 characters (e.g.
"12345"). How can I do so using
Assuming you want to take the first 5 digits from the zipcode field to use in the validation rule, you can use the LEFT function to do that. As per the Salesforce documentation, the
LEFT(text, num_chars) function Returns the specified number of characters from the beginning of a text string.