Skip to main content
I have loaded data using Dataloader but seems to be a big mess. I want to delete all the records using created date query.

 

delete new List<RD_Callsheet__c>([select Id from RD_Callsheet__c where CreatedBy ='Jakson Monteiro, 19/05/2014 4:49 PM']);

 

When i execute this it gives me a error !!
8 respuestas
  1. 19 may 2014, 17:37

    Jackson :

     

     

    Please try - CreatedBy.Name. 

     

     

    If this doesnt work try CreatedById. Fetch the 15/18 digit salesforce ID of your User and use in the query.

     

     

    Cheers,

    Amit