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
Nithish KrishnasamyNithish Krishnasamy 

if doctor as 5 existing appointment no furter appointments should be booked

Sai PraveenSai Praveen (Salesforce Developers) 
HI Nithish,

Are Appointment and Doctors the custom objects in your Orgs. Also, can you confirm 5 appointments for a Day?

Thanks,
 
Nithish KrishnasamyNithish Krishnasamy
Yes doctor and appointment are different object and 5 appointment per day
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Nitesh,

Do you have a date field on Appointment to track which date the appointment is for?

Thanks.
 
Nithish KrishnasamyNithish Krishnasamy
Date type for appointment is number
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Nitish,

Can you confirm if the date is being entered in Number field?

Thanks,
 
Nithish KrishnasamyNithish Krishnasamy
Date is in date data type