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
BigPBigP 

Can this be put into code?Trigger

The visit records (from the first task) of the same physician are not allowed to overlap with each other.
(For example, if visit #1 is scheduled today on 13:30 and has a timespan of 1 hour, then if visit #2 has a timespan of 30 minutes, it should not be allowed to have a start time at 13: 15 or 14:00, but it can before 13:00 or after 14:30).
When a user creates, updates, or deletes a visit record on Salesforce, the patient receives an email notification letting them know the new time/date of the visit, or that the visit has been canceled.
In addition, every morning at 7:00AM, physicians must receive an email with their scheduled visits of the day..p
Karen DuncanKaren Duncan
Get Started with Apex Triggers
Learning Objectives
After completing this unit, you'll be able to:
Write a trigger for a Salesforce object.
Use trigger context variables.
Call a class method from a trigger.
Use the sObject addError() method in a trigger to restrict save operations.  https://www.alaskasworld.kim/