Get Id from Email Template through Apex Salesforce
public static void sendingMail(List<Case_Comment__c> cseCmntLst){ system.debug('cseCmntLst>>>'+cseCmntLst); if(!cseCmntLst.isEmpty()){ List<Case_Comment__c> lstCmntCase = [SELECT Id,Contact__c,Related_Contact_Email__c FROM Case_Comment__c WHERE Id =:cseCmntLst[0].Id]; List<String> lstEmail = new List<String>(); if(String.isNotBlank(lstCmntCase[0].Related_Contact_Email__c)){ lstEmail.add(lstCmntCase[0].Related_Contact_Email__c); } System.debug('TO Email>>>>>>>'+lstEmail); if(!lstEmail.isEmpty()){ E...