/
Batch Member Plan Refresh Details

Batch Member Plan Refresh Details

The BatchMemberPlanRefresh is responsible for refreshing the Member Plan. It accepts a query that filters out the Member Plan that needs to be refreshed.

Batch Class Details

Batch Class: BatchMemberPlanRefresh

Schedulable Class: SchedulableBatchMemberPlanRefresh

 

How to Schedule a Batch

medicalcoverage.SchedulableBatchMemberPlanRefresh oSchedule = new medicalcoverage.SchedulableBatchMemberPlanRefresh();
String query = 'Select Id, medicalcoverage__Contact__c, medicalcoverage__Payer_Name__c, medicalcoverage__Payer_Id__c, medicalcoverage__First_Name__c, medicalcoverage__Last_Name__c, medicalcoverage__NPI__c, MemberNumber, medicalcoverage__Birth_Date__c, medicalcoverage__Coverage_ID__c, medicalcoverage__As_of_Date__c,PrimarySecondaryTertiary, medicalcoverage__Patient_SSN__c, MemberId from MemberPlan';
oSchedule.sQuery = query;
System.schedule('Member Plan Batch', '0 0 22 * * ? *' , oSchedule);

Note: Here '0 0 22 * * ? *' is the time at which the job will be scheduled. '0 0 22 * * ? *' means at 10 PM in the night.