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
Costi ConstantinescuCosti Constantinescu 

Validation Rule on Events

Hi 2all
i want to make a validation rule on Open Activities(standard) - at New Event. I want  to make a rule  who restrict me  to save two events on the same date (year/month/day) same hour....on the same agent.
Nitish KumarNitish Kumar
You can achieve this through Before trigger on Event Object. On Insert of Event do a query which fetches all event records on the same date (year/month/day) same hour. If your search returns any records , use addError to through a validation error.