Search code examples
ruby-on-railsapisalesforcedatabasedotcom-gem

how to insert 200 records via a single Api call using bulk api in salesforce


How do i add multiple records in a single api call via the bulk api using the databasedotcom gem ? right now i using the normal activerecord type methods to insert which takes one api call per record


Solution

  • The databasedotcom gem does not support bulk API as it is just a wrapper for the SFDC REST API Check here: https://github.com/heroku/databasedotcom/issues/50

    You will have to implement Bulk API on your own, I could not find any ruby gem for it. Here is the reference http://www.salesforce.com/us/developer/docs/api_asynch/