salesforce_bulk 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +3 -3
- data/lib/salesforce_bulk/connection.rb +1 -1
- data/lib/salesforce_bulk/version.rb +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -55,17 +55,17 @@ Sample operations:
|
|
55
55
|
|
56
56
|
# Query
|
57
57
|
res = salesforce.query("Account", "select id, name, createddate from Account limit 3") # We just need to pass the sobject name and the query string
|
58
|
-
puts res.records.inspect
|
58
|
+
puts res.result.records.inspect
|
59
59
|
|
60
60
|
Result reporting:
|
61
61
|
|
62
62
|
new_account = Hash["type" => "Other"] # Missing required field "name."
|
63
63
|
records_to_insert = Array.new
|
64
64
|
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.
|
65
|
-
result = salesforce.create("Account", records_to_insert)
|
65
|
+
result = salesforce.create("Account", records_to_insert, true) # Result reporting can only be used if wait is set to true
|
66
66
|
puts result.success? # false
|
67
67
|
puts result.has_errors? # true
|
68
|
-
puts result.errors # An indexed hash detailing the errors
|
68
|
+
puts result.result.errors # An indexed hash detailing the errors
|
69
69
|
|
70
70
|
== Copyright
|
71
71
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: salesforce_bulk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-07-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: xml-simple
|