restforce-db 2.2.2 → 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/restforce/db/associator.rb +1 -1
- data/lib/restforce/db/initializer.rb +2 -2
- data/lib/restforce/db/instances/active_record.rb +18 -8
- data/lib/restforce/db/instances/salesforce.rb +9 -0
- data/lib/restforce/db/synchronization_error.rb +40 -0
- data/lib/restforce/db/synchronizer.rb +15 -9
- data/lib/restforce/db/version.rb +1 -1
- data/lib/restforce/db.rb +9 -0
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/returns_an_associated_record_populated_with_the_Salesforce_attributes.yml +55 -55
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_no_salesforce_record_is_found_for_the_association/proceeds_without_constructing_any_records.yml +40 -40
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_associated_record_has_already_been_persisted/assigns_the_existing_record.yml +59 -59
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_associated_record_has_been_cached/uses_the_cached_record.yml +59 -59
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +50 -50
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/with_an_unrelated_association_mapping/proceeds_without_raising_an_error.yml +59 -59
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/returns_a_hash_of_the_associated_records_lookup_IDs.yml +41 -41
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/when_there_is_currently_no_associated_record/and_the_underlying_association_is_one-to-many/still_returns_a_nil_lookup_value_in_the_hash.yml +20 -20
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/when_there_is_currently_no_associated_record/returns_a_nil_lookup_value_in_the_hash.yml +23 -23
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +58 -58
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +58 -58
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/builds_a_number_of_associated_records_from_the_data_in_Salesforce.yml +98 -98
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_no_salesforce_record_is_found_for_the_association/proceeds_without_constructing_any_records.yml +40 -40
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_associated_records_have_alrady_been_persisted/constructs_the_association_from_the_existing_records.yml +98 -98
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_associated_records_have_been_cached/uses_the_cached_records.yml +98 -98
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +32 -32
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +98 -98
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +40 -40
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/and_a_nested_association_on_the_associated_mapping/recursively_builds_all_associations.yml +86 -86
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/returns_an_associated_record_populated_with_the_Salesforce_attributes.yml +59 -59
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_no_salesforce_record_is_found_for_the_association/proceeds_without_constructing_any_records.yml +40 -40
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_associated_record_has_already_been_persisted/assigns_the_existing_record.yml +59 -59
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_associated_record_has_been_cached/uses_the_cached_record.yml +59 -59
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +50 -50
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +59 -59
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +59 -59
- data/test/cassettes/Restforce_DB_Associator/_run/given_a_BelongsTo_association/given_another_record_for_association/when_the_Salesforce_association_is_out_of_date/updates_the_association_ID_in_Salesforce.yml +103 -103
- data/test/cassettes/Restforce_DB_Associator/_run/given_a_BelongsTo_association/given_another_record_for_association/when_the_database_association_is_out_of_date/updates_the_associated_record_in_the_database.yml +112 -112
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_mapping_has_no_conditions/does_not_drop_the_synchronized_database_record.yml +23 -23
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_does_not_meet_the_mapping_conditions/but_meets_conditions_for_a_parallel_mapping/does_not_drop_the_synchronized_database_record.yml +43 -45
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_does_not_meet_the_mapping_conditions/drops_the_synchronized_database_record.yml +41 -41
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_has_been_deleted_in_Salesforce/drops_the_synchronized_database_record.yml +20 -20
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_meets_the_mapping_conditions/does_not_drop_the_synchronized_database_record.yml +41 -41
- data/test/cassettes/Restforce_DB_Collector/_run/given_a_Salesforce_record_with_an_associated_database_record/returns_the_attributes_from_both_records.yml +41 -41
- data/test/cassettes/Restforce_DB_Collector/_run/given_an_existing_Salesforce_record/returns_the_attributes_from_the_Salesforce_record.yml +41 -41
- data/test/cassettes/Restforce_DB_Collector/_run/given_an_existing_database_record/returns_the_attributes_from_the_database_record.yml +15 -15
- data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_Salesforce_record/for_a_Passive_strategy/does_not_create_a_database_record.yml +23 -23
- data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_Salesforce_record/for_an_Always_strategy/creates_a_matching_database_record.yml +32 -33
- data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_database_record/for_an_Always_strategy/populates_Salesforce_with_the_new_record.yml +59 -59
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_synced_/when_a_matching_database_record_exists/returns_true.yml +32 -32
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_synced_/when_no_matching_database_record_exists/returns_false.yml +32 -32
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_local_record_with_the_passed_attributes.yml +49 -49
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_record_in_Salesforce_with_the_passed_attributes.yml +58 -58
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_updated_internally_/when_another_user_made_the_last_change/returns_false.yml +119 -0
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_updated_internally_/when_our_client_made_the_last_change/returns_true.yml +158 -0
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_all/returns_a_list_of_the_existing_records_in_Salesforce.yml +32 -32
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/creates_a_record_in_Salesforce_from_the_passed_database_record_s_attributes.yml +41 -41
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/updates_the_database_record_with_the_Salesforce_record_s_ID.yml +41 -41
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/finds_existing_records_in_Salesforce.yml +32 -32
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/given_a_set_of_mapping_conditions/when_a_record_does_not_meet_the_conditions/does_not_find_the_record.yml +31 -31
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/given_a_set_of_mapping_conditions/when_a_record_meets_the_conditions/finds_the_record.yml +32 -32
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/returns_nil_when_no_matching_record_exists.yml +14 -14
- data/test/cassettes/Restforce_DB_Strategies_Always/_build_/given_a_Salesforce_record/wants_to_build_a_new_matching_record.yml +32 -32
- data/test/cassettes/Restforce_DB_Strategies_Always/_build_/given_a_Salesforce_record/with_a_corresponding_database_record/does_not_want_to_build_a_new_record.yml +32 -32
- data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_a_synchronized_association_record/wants_to_build_a_new_record.yml +59 -59
- data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_an_existing_database_record/does_not_want_to_build_a_new_record.yml +50 -50
- data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_no_synchronized_association_record/does_not_want_to_build_a_new_record.yml +59 -59
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_database_record.yml +125 -49
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_salesforce_record.yml +58 -58
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/when_the_change_timestamp_is_stale/does_not_update_the_database_record.yml +125 -36
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/when_the_change_timestamp_is_stale/does_not_update_the_salesforce_record.yml +44 -44
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/when_the_changes_are_current/updates_the_database_record.yml +323 -0
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/when_the_changes_are_current/updates_the_salesforce_record.yml +286 -0
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_no_associated_database_record/does_nothing_for_this_specific_mapping.yml +41 -41
- data/test/lib/restforce/db/instances/active_record_test.rb +44 -0
- data/test/lib/restforce/db/instances/salesforce_test.rb +20 -0
- data/test/lib/restforce/db/synchronizer_test.rb +25 -13
- metadata +7 -2
@@ -21,10 +21,10 @@ http_interactions:
|
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Mon, 08 Jun 2015 22:13:07 GMT
|
25
25
|
Set-Cookie:
|
26
|
-
- BrowserId=
|
27
|
-
|
26
|
+
- BrowserId=HTTFWFu3QNqv9izGIEXZOQ;Path=/;Domain=.salesforce.com;Expires=Fri,
|
27
|
+
07-Aug-2015 22:13:07 GMT
|
28
28
|
Expires:
|
29
29
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
30
30
|
Pragma:
|
@@ -37,9 +37,9 @@ http_interactions:
|
|
37
37
|
- chunked
|
38
38
|
body:
|
39
39
|
encoding: ASCII-8BIT
|
40
|
-
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"
|
41
|
-
http_version:
|
42
|
-
recorded_at:
|
40
|
+
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1433801587122","token_type":"Bearer","instance_url":"https://<host>","signature":"S7xaagp0TWcAwoMAJaxNDmNvj2nWbkZRablpSEZuQCM=","access_token":"00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz"}'
|
41
|
+
http_version:
|
42
|
+
recorded_at: Mon, 08 Jun 2015 22:13:08 GMT
|
43
43
|
- request:
|
44
44
|
method: post
|
45
45
|
uri: https://<host>/services/data/<api_version>/sobjects/Contact
|
@@ -52,7 +52,7 @@ http_interactions:
|
|
52
52
|
Content-Type:
|
53
53
|
- application/json
|
54
54
|
Authorization:
|
55
|
-
- OAuth 00D1a000000H3O9!
|
55
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
56
56
|
Accept-Encoding:
|
57
57
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
58
58
|
Accept:
|
@@ -63,38 +63,38 @@ http_interactions:
|
|
63
63
|
message: Created
|
64
64
|
headers:
|
65
65
|
Date:
|
66
|
-
-
|
66
|
+
- Mon, 08 Jun 2015 22:13:07 GMT
|
67
67
|
Set-Cookie:
|
68
|
-
- BrowserId=
|
69
|
-
|
68
|
+
- BrowserId=QzeOvpjcT2OorA7HjT2rpg;Path=/;Domain=.salesforce.com;Expires=Fri,
|
69
|
+
07-Aug-2015 22:13:07 GMT
|
70
70
|
Expires:
|
71
71
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
72
72
|
Sforce-Limit-Info:
|
73
|
-
- api-usage=
|
73
|
+
- api-usage=53/15000
|
74
74
|
Location:
|
75
|
-
- "/services/data/<api_version>/sobjects/Contact/
|
75
|
+
- "/services/data/<api_version>/sobjects/Contact/0031a000004cfNNAAY"
|
76
76
|
Content-Type:
|
77
77
|
- application/json;charset=UTF-8
|
78
78
|
Transfer-Encoding:
|
79
79
|
- chunked
|
80
80
|
body:
|
81
81
|
encoding: ASCII-8BIT
|
82
|
-
string: '{"id":"
|
83
|
-
http_version:
|
84
|
-
recorded_at:
|
82
|
+
string: '{"id":"0031a000004cfNNAAY","success":true,"errors":[]}'
|
83
|
+
http_version:
|
84
|
+
recorded_at: Mon, 08 Jun 2015 22:13:08 GMT
|
85
85
|
- request:
|
86
86
|
method: post
|
87
87
|
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
|
88
88
|
body:
|
89
89
|
encoding: UTF-8
|
90
|
-
string: '{"Friend__c":"
|
90
|
+
string: '{"Friend__c":"0031a000004cfNNAAY"}'
|
91
91
|
headers:
|
92
92
|
User-Agent:
|
93
93
|
- Faraday v0.9.1
|
94
94
|
Content-Type:
|
95
95
|
- application/json
|
96
96
|
Authorization:
|
97
|
-
- OAuth 00D1a000000H3O9!
|
97
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
98
98
|
Accept-Encoding:
|
99
99
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
100
100
|
Accept:
|
@@ -105,25 +105,25 @@ http_interactions:
|
|
105
105
|
message: Created
|
106
106
|
headers:
|
107
107
|
Date:
|
108
|
-
-
|
108
|
+
- Mon, 08 Jun 2015 22:13:07 GMT
|
109
109
|
Set-Cookie:
|
110
|
-
- BrowserId=
|
111
|
-
|
110
|
+
- BrowserId=ku0REZqmSOWOqHK3SwOMmA;Path=/;Domain=.salesforce.com;Expires=Fri,
|
111
|
+
07-Aug-2015 22:13:07 GMT
|
112
112
|
Expires:
|
113
113
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
114
114
|
Sforce-Limit-Info:
|
115
|
-
- api-usage=
|
115
|
+
- api-usage=51/15000
|
116
116
|
Location:
|
117
|
-
- "/services/data/<api_version>/sobjects/CustomObject__c/
|
117
|
+
- "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF6wAAE"
|
118
118
|
Content-Type:
|
119
119
|
- application/json;charset=UTF-8
|
120
120
|
Transfer-Encoding:
|
121
121
|
- chunked
|
122
122
|
body:
|
123
123
|
encoding: ASCII-8BIT
|
124
|
-
string: '{"id":"
|
125
|
-
http_version:
|
126
|
-
recorded_at:
|
124
|
+
string: '{"id":"a001a000001cF6wAAE","success":true,"errors":[]}'
|
125
|
+
http_version:
|
126
|
+
recorded_at: Mon, 08 Jun 2015 22:13:09 GMT
|
127
127
|
- request:
|
128
128
|
method: post
|
129
129
|
uri: https://<host>/services/data/<api_version>/sobjects/Contact
|
@@ -136,7 +136,7 @@ http_interactions:
|
|
136
136
|
Content-Type:
|
137
137
|
- application/json
|
138
138
|
Authorization:
|
139
|
-
- OAuth 00D1a000000H3O9!
|
139
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
140
140
|
Accept-Encoding:
|
141
141
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
142
142
|
Accept:
|
@@ -147,28 +147,28 @@ http_interactions:
|
|
147
147
|
message: Created
|
148
148
|
headers:
|
149
149
|
Date:
|
150
|
-
-
|
150
|
+
- Mon, 08 Jun 2015 22:13:07 GMT
|
151
151
|
Set-Cookie:
|
152
|
-
- BrowserId=
|
153
|
-
|
152
|
+
- BrowserId=idpJ_z_UTSSCEbkzeekDPg;Path=/;Domain=.salesforce.com;Expires=Fri,
|
153
|
+
07-Aug-2015 22:13:07 GMT
|
154
154
|
Expires:
|
155
155
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
156
156
|
Sforce-Limit-Info:
|
157
|
-
- api-usage=
|
157
|
+
- api-usage=60/15000
|
158
158
|
Location:
|
159
|
-
- "/services/data/<api_version>/sobjects/Contact/
|
159
|
+
- "/services/data/<api_version>/sobjects/Contact/0031a000004cfNSAAY"
|
160
160
|
Content-Type:
|
161
161
|
- application/json;charset=UTF-8
|
162
162
|
Transfer-Encoding:
|
163
163
|
- chunked
|
164
164
|
body:
|
165
165
|
encoding: ASCII-8BIT
|
166
|
-
string: '{"id":"
|
167
|
-
http_version:
|
168
|
-
recorded_at:
|
166
|
+
string: '{"id":"0031a000004cfNSAAY","success":true,"errors":[]}'
|
167
|
+
http_version:
|
168
|
+
recorded_at: Mon, 08 Jun 2015 22:13:09 GMT
|
169
169
|
- request:
|
170
170
|
method: get
|
171
|
-
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c
|
171
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c
|
172
172
|
body:
|
173
173
|
encoding: US-ASCII
|
174
174
|
string: ''
|
@@ -176,7 +176,7 @@ http_interactions:
|
|
176
176
|
User-Agent:
|
177
177
|
- Faraday v0.9.1
|
178
178
|
Authorization:
|
179
|
-
- OAuth 00D1a000000H3O9!
|
179
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
180
180
|
Accept-Encoding:
|
181
181
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
182
182
|
Accept:
|
@@ -187,23 +187,23 @@ http_interactions:
|
|
187
187
|
message: OK
|
188
188
|
headers:
|
189
189
|
Date:
|
190
|
-
-
|
190
|
+
- Mon, 08 Jun 2015 22:13:07 GMT
|
191
191
|
Set-Cookie:
|
192
|
-
- BrowserId=
|
193
|
-
|
192
|
+
- BrowserId=tgaku49mTPOynEqcmgYnSA;Path=/;Domain=.salesforce.com;Expires=Fri,
|
193
|
+
07-Aug-2015 22:13:07 GMT
|
194
194
|
Expires:
|
195
195
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
196
196
|
Sforce-Limit-Info:
|
197
|
-
- api-usage=
|
197
|
+
- api-usage=56/15000
|
198
198
|
Content-Type:
|
199
199
|
- application/json;charset=UTF-8
|
200
200
|
Transfer-Encoding:
|
201
201
|
- chunked
|
202
202
|
body:
|
203
203
|
encoding: ASCII-8BIT
|
204
|
-
string: '{"totalSize":
|
205
|
-
http_version:
|
206
|
-
recorded_at:
|
204
|
+
string: '{"totalSize":2,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001a60JAAQ"},"Id":"a001a000001a60JAAQ","SystemModstamp":"2015-05-18T22:46:05.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"SAMPLE","Example_Field__c":null,"Friend__c":null},{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF6wAAE"},"Id":"a001a000001cF6wAAE","SystemModstamp":"2015-06-08T22:13:07.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"a001a000001cF6w","Example_Field__c":null,"Friend__c":"0031a000004cfNNAAY"}]}'
|
205
|
+
http_version:
|
206
|
+
recorded_at: Mon, 08 Jun 2015 22:13:09 GMT
|
207
207
|
- request:
|
208
208
|
method: get
|
209
209
|
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/describe
|
@@ -214,7 +214,7 @@ http_interactions:
|
|
214
214
|
User-Agent:
|
215
215
|
- Faraday v0.9.1
|
216
216
|
Authorization:
|
217
|
-
- OAuth 00D1a000000H3O9!
|
217
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
218
218
|
Accept-Encoding:
|
219
219
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
220
220
|
Accept:
|
@@ -225,14 +225,14 @@ http_interactions:
|
|
225
225
|
message: OK
|
226
226
|
headers:
|
227
227
|
Date:
|
228
|
-
-
|
228
|
+
- Mon, 08 Jun 2015 22:13:08 GMT
|
229
229
|
Set-Cookie:
|
230
|
-
- BrowserId=
|
231
|
-
|
230
|
+
- BrowserId=_nhj_IeAQ9O67Cdiy_0ZTQ;Path=/;Domain=.salesforce.com;Expires=Fri,
|
231
|
+
07-Aug-2015 22:13:08 GMT
|
232
232
|
Expires:
|
233
233
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
234
234
|
Sforce-Limit-Info:
|
235
|
-
- api-usage=
|
235
|
+
- api-usage=50/15000
|
236
236
|
Org.eclipse.jetty.server.include.etag:
|
237
237
|
- 7057c783
|
238
238
|
Last-Modified:
|
@@ -245,7 +245,7 @@ http_interactions:
|
|
245
245
|
- chunked
|
246
246
|
body:
|
247
247
|
encoding: ASCII-8BIT
|
248
|
-
string: '{"activateable":false,"childRelationships":[{"cascadeDelete":true,"childSObject":"Attachment","deprecatedAndHidden":false,"field":"ParentId","relationshipName":"Attachments","restrictedDelete":false},{"cascadeDelete":true,"childSObject":"
|
248
|
+
string: '{"activateable":false,"childRelationships":[{"cascadeDelete":true,"childSObject":"AttachedContentDocument","deprecatedAndHidden":false,"field":"LinkedEntityId","relationshipName":"AttachedContentDocuments","restrictedDelete":false},{"cascadeDelete":true,"childSObject":"Attachment","deprecatedAndHidden":false,"field":"ParentId","relationshipName":"Attachments","restrictedDelete":false},{"cascadeDelete":true,"childSObject":"CollaborationGroupRecord","deprecatedAndHidden":false,"field":"RecordId","relationshipName":"RecordAssociatedGroups","restrictedDelete":false},{"cascadeDelete":true,"childSObject":"CombinedAttachment","deprecatedAndHidden":false,"field":"ParentId","relationshipName":"CombinedAttachments","restrictedDelete":false},{"cascadeDelete":true,"childSObject":"ContentDocumentLink","deprecatedAndHidden":false,"field":"LinkedEntityId","relationshipName":null,"restrictedDelete":false},{"cascadeDelete":false,"childSObject":"ContentVersion","deprecatedAndHidden":false,"field":"FirstPublishLocationId","relationshipName":null,"restrictedDelete":false},{"cascadeDelete":true,"childSObject":"CustomObjectDetail__c","deprecatedAndHidden":false,"field":"CustomObject__c","relationshipName":"CustomObjectDetails__r","restrictedDelete":false},{"cascadeDelete":true,"childSObject":"EntitySubscription","deprecatedAndHidden":false,"field":"ParentId","relationshipName":"FeedSubscriptionsForEntity","restrictedDelete":false},{"cascadeDelete":false,"childSObject":"FeedComment","deprecatedAndHidden":false,"field":"ParentId","relationshipName":null,"restrictedDelete":false},{"cascadeDelete":true,"childSObject":"FeedItem","deprecatedAndHidden":false,"field":"ParentId","relationshipName":null,"restrictedDelete":false},{"cascadeDelete":true,"childSObject":"Note","deprecatedAndHidden":false,"field":"ParentId","relationshipName":"Notes","restrictedDelete":false},{"cascadeDelete":true,"childSObject":"NoteAndAttachment","deprecatedAndHidden":false,"field":"ParentId","relationshipName":"NotesAndAttachments","restrictedDelete":false},{"cascadeDelete":true,"childSObject":"ProcessInstance","deprecatedAndHidden":false,"field":"TargetObjectId","relationshipName":"ProcessInstances","restrictedDelete":false},{"cascadeDelete":false,"childSObject":"ProcessInstanceHistory","deprecatedAndHidden":false,"field":"TargetObjectId","relationshipName":"ProcessSteps","restrictedDelete":false},{"cascadeDelete":true,"childSObject":"TopicAssignment","deprecatedAndHidden":false,"field":"EntityId","relationshipName":"TopicAssignments","restrictedDelete":false}],"compactLayoutable":true,"createable":true,"custom":true,"customSetting":false,"deletable":true,"deprecatedAndHidden":false,"feedEnabled":false,"fields":[{"autoNumber":false,"byteLength":18,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":false,"custom":false,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":true,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":true,"inlineHelpText":null,"label":"Record
|
249
249
|
ID","length":18,"name":"Id","nameField":false,"namePointing":false,"nillable":false,"permissionable":false,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"tns:ID","sortable":true,"type":"id","unique":false,"updateable":false,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":18,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":false,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":true,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Owner
|
250
250
|
ID","length":18,"name":"OwnerId","nameField":false,"namePointing":true,"nillable":false,"permissionable":false,"picklistValues":[],"precision":0,"referenceTo":["Group","User"],"relationshipName":"Owner","relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"tns:ID","sortable":true,"type":"reference","unique":false,"updateable":true,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":0,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":false,"custom":false,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":true,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Deleted","length":0,"name":"IsDeleted","nameField":false,"namePointing":false,"nillable":false,"permissionable":false,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:boolean","sortable":true,"type":"boolean","unique":false,"updateable":false,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":240,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":false,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":true,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":true,"inlineHelpText":null,"label":"CustomObject
|
251
251
|
Name","length":80,"name":"Name","nameField":true,"namePointing":false,"nillable":true,"permissionable":false,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:string","sortable":true,"type":"string","unique":false,"updateable":true,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":0,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":false,"custom":false,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":true,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":false,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Created
|
@@ -254,22 +254,22 @@ http_interactions:
|
|
254
254
|
Modified Date","length":0,"name":"LastModifiedDate","nameField":false,"namePointing":false,"nillable":false,"permissionable":false,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:dateTime","sortable":true,"type":"datetime","unique":false,"updateable":false,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":18,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":false,"custom":false,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":true,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Last
|
255
255
|
Modified By ID","length":18,"name":"LastModifiedById","nameField":false,"namePointing":false,"nillable":false,"permissionable":false,"picklistValues":[],"precision":0,"referenceTo":["User"],"relationshipName":"LastModifiedBy","relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"tns:ID","sortable":true,"type":"reference","unique":false,"updateable":false,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":0,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":false,"custom":false,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":true,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":false,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"System
|
256
256
|
Modstamp","length":0,"name":"SystemModstamp","nameField":false,"namePointing":false,"nillable":false,"permissionable":false,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:dateTime","sortable":true,"type":"datetime","unique":false,"updateable":false,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":765,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":true,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":false,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Example
|
257
|
-
Field","length":255,"name":"Example_Field__c","nameField":false,"namePointing":false,"nillable":true,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:string","sortable":true,"type":"string","unique":false,"updateable":true,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":18,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":true,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":false,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Friend","length":18,"name":"Friend__c","nameField":false,"namePointing":false,"nillable":true,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":["Contact"],"relationshipName":"Friend__r","relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"tns:ID","sortable":true,"type":"reference","unique":false,"updateable":true,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":0,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":true,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":true,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Visible","length":0,"name":"Visible__c","nameField":false,"namePointing":false,"nillable":false,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:boolean","sortable":true,"type":"boolean","unique":false,"updateable":true,"writeRequiresMasterRead":false}],"keyPrefix":"a00","label":"CustomObject","labelPlural":"CustomObjects","layoutable":true,"listviewable":null,"lookupLayoutable":null,"mergeable":false,"name":"CustomObject__c","queryable":true,"recordTypeInfos":[{"available":true,"defaultRecordTypeMapping":true,"name":"Master","recordTypeId":"012000000000000AAA"}],"replicateable":true,"retrieveable":true,"searchLayoutable":
|
258
|
-
http_version:
|
259
|
-
recorded_at:
|
257
|
+
Field","length":255,"name":"Example_Field__c","nameField":false,"namePointing":false,"nillable":true,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:string","sortable":true,"type":"string","unique":false,"updateable":true,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":18,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":true,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":false,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Friend","length":18,"name":"Friend__c","nameField":false,"namePointing":false,"nillable":true,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":["Contact"],"relationshipName":"Friend__r","relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"tns:ID","sortable":true,"type":"reference","unique":false,"updateable":true,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":0,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":true,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":true,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Visible","length":0,"name":"Visible__c","nameField":false,"namePointing":false,"nillable":false,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:boolean","sortable":true,"type":"boolean","unique":false,"updateable":true,"writeRequiresMasterRead":false}],"keyPrefix":"a00","label":"CustomObject","labelPlural":"CustomObjects","layoutable":true,"listviewable":null,"lookupLayoutable":null,"mergeable":false,"name":"CustomObject__c","queryable":true,"recordTypeInfos":[{"available":true,"defaultRecordTypeMapping":true,"name":"Master","recordTypeId":"012000000000000AAA","urls":{"layout":"/services/data/<api_version>/sobjects/CustomObject__c/describe/layouts/012000000000000AAA"}}],"replicateable":true,"retrieveable":true,"searchLayoutable":true,"searchable":true,"triggerable":true,"undeletable":true,"updateable":true,"urls":{"uiEditTemplate":"https://<host>/{ID}/e","sobject":"/services/data/<api_version>/sobjects/CustomObject__c","quickActions":"/services/data/<api_version>/sobjects/CustomObject__c/quickActions","uiDetailTemplate":"https://<host>/{ID}","describe":"/services/data/<api_version>/sobjects/CustomObject__c/describe","rowTemplate":"/services/data/<api_version>/sobjects/CustomObject__c/{ID}","layouts":"/services/data/<api_version>/sobjects/CustomObject__c/describe/layouts","compactLayouts":"/services/data/<api_version>/sobjects/CustomObject__c/describe/compactLayouts","uiNewRecord":"https://<host>/a00/e"}}'
|
258
|
+
http_version:
|
259
|
+
recorded_at: Mon, 08 Jun 2015 22:13:09 GMT
|
260
260
|
- request:
|
261
261
|
method: patch
|
262
|
-
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/
|
262
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF6wAAE
|
263
263
|
body:
|
264
264
|
encoding: UTF-8
|
265
|
-
string: '{"Friend__c":"
|
265
|
+
string: '{"Friend__c":"0031a000004cfNSAAY"}'
|
266
266
|
headers:
|
267
267
|
User-Agent:
|
268
268
|
- Faraday v0.9.1
|
269
269
|
Content-Type:
|
270
270
|
- application/json
|
271
271
|
Authorization:
|
272
|
-
- OAuth 00D1a000000H3O9!
|
272
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
273
273
|
Accept-Encoding:
|
274
274
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
275
275
|
Accept:
|
@@ -280,22 +280,22 @@ http_interactions:
|
|
280
280
|
message: No Content
|
281
281
|
headers:
|
282
282
|
Date:
|
283
|
-
-
|
283
|
+
- Mon, 08 Jun 2015 22:13:08 GMT
|
284
284
|
Set-Cookie:
|
285
|
-
- BrowserId=
|
286
|
-
|
285
|
+
- BrowserId=PUVIlpRHSIeKFjkxe4SeLw;Path=/;Domain=.salesforce.com;Expires=Fri,
|
286
|
+
07-Aug-2015 22:13:08 GMT
|
287
287
|
Expires:
|
288
288
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
289
289
|
Sforce-Limit-Info:
|
290
|
-
- api-usage=
|
290
|
+
- api-usage=56/15000
|
291
291
|
body:
|
292
292
|
encoding: UTF-8
|
293
293
|
string: ''
|
294
|
-
http_version:
|
295
|
-
recorded_at:
|
294
|
+
http_version:
|
295
|
+
recorded_at: Mon, 08 Jun 2015 22:13:09 GMT
|
296
296
|
- request:
|
297
297
|
method: get
|
298
|
-
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%
|
298
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001cF6wAAE%27
|
299
299
|
body:
|
300
300
|
encoding: US-ASCII
|
301
301
|
string: ''
|
@@ -303,7 +303,7 @@ http_interactions:
|
|
303
303
|
User-Agent:
|
304
304
|
- Faraday v0.9.1
|
305
305
|
Authorization:
|
306
|
-
- OAuth 00D1a000000H3O9!
|
306
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
307
307
|
Accept-Encoding:
|
308
308
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
309
309
|
Accept:
|
@@ -314,26 +314,26 @@ http_interactions:
|
|
314
314
|
message: OK
|
315
315
|
headers:
|
316
316
|
Date:
|
317
|
-
-
|
317
|
+
- Mon, 08 Jun 2015 22:13:08 GMT
|
318
318
|
Set-Cookie:
|
319
|
-
- BrowserId=
|
320
|
-
|
319
|
+
- BrowserId=WoWrTUxuTk2y6nXxhyTNxQ;Path=/;Domain=.salesforce.com;Expires=Fri,
|
320
|
+
07-Aug-2015 22:13:08 GMT
|
321
321
|
Expires:
|
322
322
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
323
323
|
Sforce-Limit-Info:
|
324
|
-
- api-usage=
|
324
|
+
- api-usage=57/15000
|
325
325
|
Content-Type:
|
326
326
|
- application/json;charset=UTF-8
|
327
327
|
Transfer-Encoding:
|
328
328
|
- chunked
|
329
329
|
body:
|
330
330
|
encoding: ASCII-8BIT
|
331
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/
|
332
|
-
http_version:
|
333
|
-
recorded_at:
|
331
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF6wAAE"},"Id":"a001a000001cF6wAAE","SystemModstamp":"2015-06-08T22:13:08.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"a001a000001cF6w","Example_Field__c":null,"Friend__c":"0031a000004cfNSAAY"}]}'
|
332
|
+
http_version:
|
333
|
+
recorded_at: Mon, 08 Jun 2015 22:13:10 GMT
|
334
334
|
- request:
|
335
335
|
method: get
|
336
|
-
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%
|
336
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001cF6wAAE%27
|
337
337
|
body:
|
338
338
|
encoding: US-ASCII
|
339
339
|
string: ''
|
@@ -341,7 +341,7 @@ http_interactions:
|
|
341
341
|
User-Agent:
|
342
342
|
- Faraday v0.9.1
|
343
343
|
Authorization:
|
344
|
-
- OAuth 00D1a000000H3O9!
|
344
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
345
345
|
Accept-Encoding:
|
346
346
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
347
347
|
Accept:
|
@@ -352,26 +352,26 @@ http_interactions:
|
|
352
352
|
message: OK
|
353
353
|
headers:
|
354
354
|
Date:
|
355
|
-
-
|
355
|
+
- Mon, 08 Jun 2015 22:13:08 GMT
|
356
356
|
Set-Cookie:
|
357
|
-
- BrowserId=
|
358
|
-
|
357
|
+
- BrowserId=Oj8Rxq44Q-K-Q_ApzYYaVA;Path=/;Domain=.salesforce.com;Expires=Fri,
|
358
|
+
07-Aug-2015 22:13:08 GMT
|
359
359
|
Expires:
|
360
360
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
361
361
|
Sforce-Limit-Info:
|
362
|
-
- api-usage=
|
362
|
+
- api-usage=54/15000
|
363
363
|
Content-Type:
|
364
364
|
- application/json;charset=UTF-8
|
365
365
|
Transfer-Encoding:
|
366
366
|
- chunked
|
367
367
|
body:
|
368
368
|
encoding: ASCII-8BIT
|
369
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/
|
370
|
-
http_version:
|
371
|
-
recorded_at:
|
369
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF6wAAE"},"Id":"a001a000001cF6wAAE","SystemModstamp":"2015-06-08T22:13:08.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"a001a000001cF6w","Example_Field__c":null,"Friend__c":"0031a000004cfNSAAY"}]}'
|
370
|
+
http_version:
|
371
|
+
recorded_at: Mon, 08 Jun 2015 22:13:10 GMT
|
372
372
|
- request:
|
373
373
|
method: delete
|
374
|
-
uri: https://<host>/services/data/<api_version>/sobjects/Contact/
|
374
|
+
uri: https://<host>/services/data/<api_version>/sobjects/Contact/0031a000004cfNNAAY
|
375
375
|
body:
|
376
376
|
encoding: US-ASCII
|
377
377
|
string: ''
|
@@ -379,7 +379,7 @@ http_interactions:
|
|
379
379
|
User-Agent:
|
380
380
|
- Faraday v0.9.1
|
381
381
|
Authorization:
|
382
|
-
- OAuth 00D1a000000H3O9!
|
382
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
383
383
|
Accept-Encoding:
|
384
384
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
385
385
|
Accept:
|
@@ -390,22 +390,22 @@ http_interactions:
|
|
390
390
|
message: No Content
|
391
391
|
headers:
|
392
392
|
Date:
|
393
|
-
-
|
393
|
+
- Mon, 08 Jun 2015 22:13:08 GMT
|
394
394
|
Set-Cookie:
|
395
|
-
- BrowserId
|
396
|
-
|
395
|
+
- BrowserId=gmdGO5ujQ9SMVlX0inMsGw;Path=/;Domain=.salesforce.com;Expires=Fri,
|
396
|
+
07-Aug-2015 22:13:08 GMT
|
397
397
|
Expires:
|
398
398
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
399
399
|
Sforce-Limit-Info:
|
400
|
-
- api-usage=
|
400
|
+
- api-usage=60/15000
|
401
401
|
body:
|
402
402
|
encoding: UTF-8
|
403
403
|
string: ''
|
404
|
-
http_version:
|
405
|
-
recorded_at:
|
404
|
+
http_version:
|
405
|
+
recorded_at: Mon, 08 Jun 2015 22:13:10 GMT
|
406
406
|
- request:
|
407
407
|
method: delete
|
408
|
-
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/
|
408
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF6wAAE
|
409
409
|
body:
|
410
410
|
encoding: US-ASCII
|
411
411
|
string: ''
|
@@ -413,7 +413,7 @@ http_interactions:
|
|
413
413
|
User-Agent:
|
414
414
|
- Faraday v0.9.1
|
415
415
|
Authorization:
|
416
|
-
- OAuth 00D1a000000H3O9!
|
416
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
417
417
|
Accept-Encoding:
|
418
418
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
419
419
|
Accept:
|
@@ -424,22 +424,22 @@ http_interactions:
|
|
424
424
|
message: No Content
|
425
425
|
headers:
|
426
426
|
Date:
|
427
|
-
-
|
427
|
+
- Mon, 08 Jun 2015 22:13:09 GMT
|
428
428
|
Set-Cookie:
|
429
|
-
- BrowserId
|
430
|
-
|
429
|
+
- BrowserId=f3opiVn6TLCSiBep8Uoc1g;Path=/;Domain=.salesforce.com;Expires=Fri,
|
430
|
+
07-Aug-2015 22:13:09 GMT
|
431
431
|
Expires:
|
432
432
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
433
433
|
Sforce-Limit-Info:
|
434
|
-
- api-usage=
|
434
|
+
- api-usage=63/15000
|
435
435
|
body:
|
436
436
|
encoding: UTF-8
|
437
437
|
string: ''
|
438
|
-
http_version:
|
439
|
-
recorded_at:
|
438
|
+
http_version:
|
439
|
+
recorded_at: Mon, 08 Jun 2015 22:13:10 GMT
|
440
440
|
- request:
|
441
441
|
method: delete
|
442
|
-
uri: https://<host>/services/data/<api_version>/sobjects/Contact/
|
442
|
+
uri: https://<host>/services/data/<api_version>/sobjects/Contact/0031a000004cfNSAAY
|
443
443
|
body:
|
444
444
|
encoding: US-ASCII
|
445
445
|
string: ''
|
@@ -447,7 +447,7 @@ http_interactions:
|
|
447
447
|
User-Agent:
|
448
448
|
- Faraday v0.9.1
|
449
449
|
Authorization:
|
450
|
-
- OAuth 00D1a000000H3O9!
|
450
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
451
451
|
Accept-Encoding:
|
452
452
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
453
453
|
Accept:
|
@@ -458,17 +458,17 @@ http_interactions:
|
|
458
458
|
message: No Content
|
459
459
|
headers:
|
460
460
|
Date:
|
461
|
-
-
|
461
|
+
- Mon, 08 Jun 2015 22:13:09 GMT
|
462
462
|
Set-Cookie:
|
463
|
-
- BrowserId=
|
464
|
-
|
463
|
+
- BrowserId=24E8FeCtTkOdVzSUlbiRJw;Path=/;Domain=.salesforce.com;Expires=Fri,
|
464
|
+
07-Aug-2015 22:13:09 GMT
|
465
465
|
Expires:
|
466
466
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
467
467
|
Sforce-Limit-Info:
|
468
|
-
- api-usage=
|
468
|
+
- api-usage=56/15000
|
469
469
|
body:
|
470
470
|
encoding: UTF-8
|
471
471
|
string: ''
|
472
|
-
http_version:
|
473
|
-
recorded_at:
|
472
|
+
http_version:
|
473
|
+
recorded_at: Mon, 08 Jun 2015 22:13:11 GMT
|
474
474
|
recorded_with: VCR 2.9.3
|