+ Start a Discussion

Is it possible to import data with batch apex and data loader in parallel?

Is it possible to import data from .csv file using batch apex?

What is the main difference between dataloader and batch apex?


It is unlikely that you'd want to import data using Batch Apex; that feature is better suited for things like updating a large number of records, aggregating data, and generating data from scratch, or an external source.


Batch Apex is completely different than the Data Loader. The former is custom code written for a specific purpose, while the latter is a system tool for manipulating data.

ForceMantis (Amit Jain)ForceMantis (Amit Jain)

It is very unlikely that you will need to import csv data using batch apex, but if need be it is possible, I have recently implemented it. 


If you want to do some manipulation on data while importing it you can consider importing this data via data loader to a temporary object and then use batch apex to manipulate it and put in appropriate object and delete from source object.