function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MC-DragnierMC-Dragnier 

exporting leads from apex data loader based on create date

Hi,

 

I'm trying to export all of the leads from my database that were created on 02/10/2011.  I know for the purposes of the data loader it needs to be in the format 2011-02-10T00:00:00.000Z to be read by the data loader.  However when formatted that way, the data loader isn't erroring out, but I'm not getting any data returned.

 

Has anybody used the data loader to do this and could suggest where I may be going wrong here?

 

 

Thanks!

Best Answer chosen by Admin (Salesforce Developers) 
_Prasu__Prasu_

As you are comparig to the date time, you will need to take the range of date time for the condtion like for example

 

CreatedDate >2011-02-10T00:00:00.000Z && CreatedDate <2011-02-11T00:00:00.000Z

 

something like that should return you the intended results.

All Answers

_Prasu__Prasu_

As you are comparig to the date time, you will need to take the range of date time for the condtion like for example

 

CreatedDate >2011-02-10T00:00:00.000Z && CreatedDate <2011-02-11T00:00:00.000Z

 

something like that should return you the intended results.

This was selected as the best answer
MC-DragnierMC-Dragnier

That's perfect.  I feel like a moron for not having thought of it. 

 

Thank you very much for the help.

Shanu_007Shanu_007

Hey Prasanna

 

 

This thing worked for me too.. Thanks!!

 

 

Pras