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
Ankit Garg 117Ankit Garg 117 

Limit on Quantity

Hi Gurus,

So I have a custom object called ''Banner''. Within Banner I have 2 fields called "HS_Speaciality" and "Region (z_Speciality)''

What I am trying to achieve is 1 particular speciality can only be allocated to any particular region maximum of 3 times. Now I wan to check this across all the Banners and not just on 1 Banner. Need a trigger for this. Example- there can only be 3 Physiotherepist in New York, there may be other physioterepistr at other locations though.