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
Prakhyat sapraPrakhyat sapra 

In the Visit__c object, if more than 2 visit are made in the name of the same owner, then the error is given that you can't create more than 2 visit by the same owner ????by trigger

In the Visit__c object, if more than 2 visit are made in the name of the same owner, then the error is given that you can't create more than 2 visit  by the same owner ????by trigger
SwethaSwetha (Salesforce Developers) 
HI Prakhyat,
How do you determine the vists? Is there a custom field on  Visit__c object for tracking this?
Prakhyat sapraPrakhyat sapra
yes
Harshit Kumar 27Harshit Kumar 27
Hi Prakhyat,

Please give more clarity on the requirement.