congaengr / soapforce

Salesforce SOAP API wrapper based on Savon
MIT License
26 stars 25 forks source link

Accepts Headers #25

Open Nerdenberger opened 7 years ago

Nerdenberger commented 7 years ago

As a user of the SOAP API I often need to pass headers such as 'AllOrNone' or 'AssignmentRule' to salesforce to fit the requirements of my integration.

This PR adds the ability for a user to pass an optional headers argument to most SOAP calls.

header = { "AllOrNoneHeader" => { "allOrNone" => true } } 
client.upsert(table, external_id, batch, header)
jheth commented 7 years ago

Hey @Nerdenberger! Thanks for the PR. It looks like we have a mix of tabs vs spaces. Can you fix that up?

jheth commented 7 years ago

@Nerdenberger What do you think of the comments I left on the commits?