• Neha Wakchaware 21
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 2
    Questions
  • 3
    Replies
Hi I have added lightning quick actions on page layout but not visible in lightning. I have added actions post, log a call, email, new task, new event.
Any sugessions ?
User-added image
Hi, I want a permission set that I can assign do basic user management, like create and deactivate users, and reset passwords. I have tried with permission sets but seems like its not possible from there.
Hi I have added lightning quick actions on page layout but not visible in lightning. I have added actions post, log a call, email, new task, new event.
Any sugessions ?
User-added image
Hi all ,
getting the below eeror while excuting batch
Line: 2, Column: 10
Method does not exist or incorrect signature: void executeBatch(CustomerProcessingBatch) from the type Database

Executing the below code in Anonymous window 

CustomerProcessingBatch objectClass=new CustomerProcessingBatch();
Database.executeBatch(objectClass);

ApexClass:
global class CustomerProcessingBatch implements Database.Batchable<sObject>
{
    global String[] email=new string[] {'a.sakthidhn@gmail.com'};
    //start method
    global Database.QueryLocator start(Database.BatchableContext BC)
    {
       return Database.getQueryLocator('select id,name,Customer_Status__c,Customer_Description__c from Apex_Customer__c where Active__c=true');
    }
    //execute
    global void execute(Database.BatchableContext BC,List <sObject> scope)
    {
        List<Apex_Customer__c> CustomerList=new List<Apex_Customer__c>();
        for(sObject objscope: scope)
        {
            Apex_Customer__c newobjscope=(Apex_Customer__c)objscope;
            newobjscope.Customer_Description__c='Records updated via Batch Job';
            newobjscope.Customer_Status__c='Paid';
            CustomerList.Add(newobjscope);
            system.debug('Records Updated' +CustomerList);
        }
        if(CustomerList!=null && CustomerList.size()>0)
        {
            Database.update(CustomerList);
            system.debug('Records Updated'+CustomerList);
        }
     }
    global void finish(Database.BatchableContext BC)
    {
        Messaging.SingleEmailMessage mail=new Messaging.SingleEmailMessage();
        AsyncApexjob a= [select a.Totaljobitems, a.Status,a.NumberOfErrors,a.JobType,a.JobItemsProcessed,a.ExtendedStatus,a.CreatedById,a.CompletedDate from AsyncApexJob a where id= :BC.getJobId()];
        system.debug('JobId'+BC.getJobId());
        mail.SetToAddresses(email);        
        mail.SetReplyTo('a.sakthidhn@gmail.com');
        mail.SetSenderDisplayName('Apex Batch Processing Module');
        mail.setSubject('Batch Status' +a.Status);
        mail.setPlainTextBody('The Batch Apex Job Processed'+a.TotalJobItems+'Batches with'+a.NumberOfErrors+'Failures'+'Job Proceesed are'+a.JobItemsProcessed);
        Messaging.sendEmail(new Messaging.SingleEmailMessage[]{mail});
     }
}