I'm using the rforce gem to create records in my salesforce database.
The example for creating records in the rforce documentation is:
opportunity = [
:name, 'Fakey McFakerson',
:stageName, 'Closed Won'
binding.create :sObject => opportunity
The salesforce API call create() allows for the creation of multiple object at once, but I'm struggling to accomplish this. I've tried the following call:
binding.create :sObject => array_of_opportunities
Where array_of_opportunities is an array of arrays like opportunity in the example above?
but that throws an error:
NoMethodError (undefined method `to_sym' for #<Array:0x00000004ba5488>)
I'd appreciate any help.