Batch Class and Dynamic Create Email Template
global class batchClasAndSendDynamicEmailTemplate implements Database.Batchable<Sobject> { set<Id> suid= new set<Id>(); set<id> sweekplanid = new set<id>(); map<id,user> mapManager = new map<id,user>(); Map<ID,List<Weekly_Plan__c>> mapUserIdToAWPList = new Map<Id,List<Weekly_Plan__c>>(); Map<ID,String> mapUserIdToManagerEmail = new Map<Id,String>(); Map<ID,String> mapManagerIdTomanager = new Map<Id,String>(); list<string> lstEmail = new list<string>(); string tempBody = ''; List<Weekly_Plan__c> listPJPWeeklyUpdate = new List<Weekly_Plan__c>(); global Database.Querylocator start(Database.Batchablecontext BC) { return Database.getQueryLocator([Sel...