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
si risi ri 

validation rule on event urgent.

Hi all, need some help to define validation logic.
On Event object, there are two fields Start time & End time.
The user should be able to create event before start time or after End time only.
It means if there is any event created, the another event shouldnot be created in the middle of the start and End time of that event on that particular date.
Khan AnasKhan Anas (Salesforce Developers) 
Hi,

Greetings to you!

You can't do that with validation rule. Please refer to the below link which might help you further with the above requirement.

https://dayback.com/date-range-conflicts-salesforce/

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas