+ Start a Discussion
sonali  vermasonali verma 

bulk api vs batch apex

what is the difference between bulk api and batch apex?
is bulk api an substitute for batch apex and can we write code in bulk api based on business requirement?
How many records does BULK api process compared to batch apex
Do we have to manually write entire code when using BULK api to salesorce or is there in auto generate tool?

what errors do we encounter in bulk api?

like batch classescan multiple bulk api's be chained?

Please help me in understanding.

Batch Apex [1] is used to do asyncronous jobs on large amounts of data in a more or less scheduled way.  Batch Apex can be used in conjunction with Scheduled Apex [2].

Bulk API is used for doing data manipulation of large sets of data, typically from outside of Salesforce.

If you were to think of Salesforce as a wearhouse, batch Apex would be like scheduling an update of your entire inventory every month.  Where as bulk API is more akin to getting your monthly delivery to the warehouse.

[1] https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_batch_interface.htm
[2] http://blog.deadlypenguin.com/blog/2012/05/26/scheduled-actions-in-salesforce-with-apex/
Karen fooKaren foo
thanks for sharing the valuable link to solve my problem.
quickpayportal  (https://www.quickpayportal.pro/)