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
JustinMccJustinMcc 

How to Bypass Validation

I've reported this as an issue to Salesforce support, but in our instance it is very easy for a user to bypass all validation rules against an Account.  I have not tried it with other objects yet.

 

  1. Go to an object that has a lookup to an Account (e.g. a Task would do it)
  2. Create a new object of this type.
  3. Click the lookup button to pick the related Account
  4. Click New, then simply fill in the name of the new account and hit save.

 Hey presto, you have saved the Account while bypassing all the validation rules.

JustinMccJustinMcc

Ok I had word back from SF support.  This is a feature not a bug and when using the quick create as above the validation rules are not tested.  The trigger should still fire so validation at that level should work.

 

To disable this "feature" which can only be done across all objects and even affects quick create for Lotus / Outlook Connect:

 

Setup | Customize | User Interface

uncheck "Show Quick Create"

 

Justin

KeithPKeithP

The same issue can be found on Salesforce icon lookups when adding Contacts to Opportunity Contact roles for example - and elsewhere. Users were able to create Contacts as orphans, without Accounts, although both Page Layout and Validation rules in place to stop it.  The above solution of un-checking quick create works.  Thanks!

KeithP