You need to sign in to do that
Don't have an account?
himanshu huske 7
Batch Apex Scenerio
i have objects Patient__c, Doctor__c, Appointment__c, Medications__c.
Appointment__c has field patient__c(lookup), doctor__c(lookup), AppointMentDate__c(Date)
Medications__c has field patient__c(lookup), doctor__c(lookup), description__c, NextVisit__c(date).
Patient__c has an Email__c field.
if medication record is created with NextVisit != Null,
it should send email before 2 days To get Appointment.
if appointment is made before NextVisit__c date, email should not get sent.
Appointment__c has field patient__c(lookup), doctor__c(lookup), AppointMentDate__c(Date)
Medications__c has field patient__c(lookup), doctor__c(lookup), description__c, NextVisit__c(date).
Patient__c has an Email__c field.
if medication record is created with NextVisit != Null,
it should send email before 2 days To get Appointment.
if appointment is made before NextVisit__c date, email should not get sent.
Why do we need to go for batch class for this ?
We could solve this using process builder or workflow.
Thanks,
Govindaraj.S