Skip to content

Commit

Permalink
fixed small omission in readme result reporiting section
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Valdivia committed Jun 24, 2012
1 parent e66bb49 commit 0451ad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Result reporting:
new_account = Hash["type" => "Other"] # Missing required field "name."
records_to_insert = Array.new
records_to_insert.push(new_account) # You can add as many records as you want here, just keep in mind that Salesforce has governor limits.
result = salesforce.create("Account", records_to_insert)
result = salesforce.create("Account", records_to_insert, true) # Result reporting can only be used if wait is set to true
puts result.success? # false
puts result.has_errors? # true
puts result.errors # An indexed hash detailing the errors
Expand Down

0 comments on commit 0451ad2

Please sign in to comment.