Ask Search:
Shawn LowShawn Low 

Do validation rules apply when updating through an API

Meaning, if records are updated, created or edited, through an API, will the Validation Rules apply (or fire)?
Best Answer chosen by Shawn Low
Deepak AnandDeepak Anand
Yes, they do for sure.

All Answers

Deepak AnandDeepak Anand
Yes, they do for sure.
This was selected as the best answer
Shawn LowShawn Low
Hey Deepak,
So is there a situation when the Validation rules are "circumvented" and don't "fire"?
Deepak AnandDeepak Anand
There is no such situation unless you deactivate it :-)
Nick SauerNick Sauer
I think some folks have added a check in their validation rules to check a user custom field before firing.  Here is one thread on it, but there are a lot:
https://salesforce.stackexchange.com/questions/137819/bypass-validation-rules-duplicate-rules-during-import-via-dataloader/139241
This would be a big undertaking if you have a lot of validation rules, but an interesting idea.