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
EtienneCoutantEtienneCoutant 

Skip Validation Rules using the API

I am using:
PHP toolkit 11.0b
PHP 5.1.6

I am migrating some code from Salesforce API version 7.0 to the version 11.1.
It seems that Validation Rules were not verified upon record creation/update with the version 7.0, but it is now. Is there a way to force the System to ignore Validation Rules when creating/updating records via the API 11.1 ?

Thanks a lot!
werewolfwerewolf
Not really.  I guess you can set a custom field from the API that you don't normally set via the UI, and then check for that field in your validation rules.

One question you may want to ask yourself is why you would want to be putting in data that violates your own validation rules.  I mean, why would you want dirty data in the system?  Isn't that the point of validation rules?
EtienneCoutantEtienneCoutant
Ok thanks a lot!