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
kkgkkg 

How to reduce governor limit on Look-up Relationship ?

Hello All,

### As per the salesforce governor limit lookup Relationship we can create upto 40 per Object.
 
Now my requirement is i want to create max 3 lookup Relationship , if i'm trying to create 4th lookup Relationship there should be a validation.

how to achive above requirement.?

Thank you for your help in advance !

 
SlashApex (Luis Luciani)SlashApex (Luis Luciani)
If you are talking about throwing an error if one of your admins tries to create a 4th lookup field, then this is not possible. There is no functionality to add validation on setup entities.

Sorry