function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
KJesseKJesse 

Check an Account Field before saving

I would like to perform validation on a field that represents what type of account it is. I would like to check Account Picklist field, and if the correct value allow the parent ID to be saved or else it should be blank. Is this possible?

The alternative is messy with REST API from the external database. Validating in salesforce would be preferable.

Thanks,
Kevin
Best Answer chosen by KJesse
Neetu_BansalNeetu_Bansal
Hi Kevin,

You can create validation rule on Account, there you can specify the condition, which will confirm whether to create account or not. If not, you can add error message to be displayed.

Thanks,
Neetu