Question:
Why are the VEEVA_BATCH_CHILD_ACCOUNT_PUSH and VEEVA_BATCH_CHILD_ACCOUNT_DELETE apex classes not showing as an option when scheduling an Apex Job?
Answer:
The VEEVA_BATCH_CHILD_ACCOUNT_PUSH and VEEVA_BATCH_CHILD_ACCOUNT_DELETE are not apex classes that can be scheduled.
In order to schedule the Apex Job, an apex class needs to be created to enable VEEVA_BATCH_CHILD_ACCOUNT_PUSH and VEEVA_BATCH_CHILD_ACCOUNT_DELETE batch address update.
Example:
The apex code within the EXAMPLE_FOR_ADDRESS_PUSH_SCHEDULING apex class can be used as a template when creating the new apex class.
global class EXAMPLE_FOR_ADDRESS_PUSH_SCHEDULING implements Schedulable{
global void execute(SchedulableContext sc) {
VEEVA_BATCH_CHILD_ACCOUNT_PUSH b = new VEEVA_BATCH_CHILD_ACCOUNT_PUSH();
database.executebatch(b,10);
VEEVA_BATCH_CHILD_ACCOUNT_DELETE c = new VEEVA_BATCH_CHILD_ACCOUNT_DELETE();
database.executebatch(c,25);
}
}
Related Documentation:
CRM Help Documentation: Address Inheritance Support