Salesforce

Salesforce

Automatic email scheduler to Contacts accosiated with those Opportunities

Batch Class: global class opptyDetails implements Database.Batchable<sobject>{    global Database.QueryLocator start(Database.BatchableContext bc)    {        String soql = 'SELECT Opportunity.Name, Opportunity.OrderNumber__c, Opportunity.Approval_Status__c, Contact.Email, Contact.Name, Contact.Level__c FROM OpportunityContactRole';        return Database.getQueryLocator(soql);    }        global void ....