restforce-db 2.0.0 → 2.0.1
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/accumulator.rb +13 -0
- data/lib/restforce/db/field_processor.rb +70 -0
- data/lib/restforce/db/instances/salesforce.rb +10 -0
- data/lib/restforce/db/record_types/salesforce.rb +2 -2
- data/lib/restforce/db/synchronizer.rb +2 -1
- data/lib/restforce/db/version.rb +1 -1
- data/lib/restforce/db.rb +1 -0
- 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 +135 -82
- 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 +152 -99
- 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 +120 -0
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_does_not_meet_the_mapping_conditions/for_a_non-Passive_strategy/drops_the_synchronized_database_record.yml +34 -36
- 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 +35 -37
- data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_database_record/for_an_Always_strategy/populates_Salesforce_with_the_new_record.yml +96 -44
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_local_record_with_the_passed_attributes.yml +88 -35
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_record_in_Salesforce_with_the_passed_attributes.yml +96 -43
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/creates_a_record_in_Salesforce_from_the_passed_database_record_s_attributes.yml +81 -28
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/updates_the_database_record_with_the_Salesforce_record_s_ID.yml +81 -28
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_database_record.yml +88 -35
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_salesforce_record.yml +96 -43
- data/test/lib/restforce/db/accumulator_test.rb +16 -0
- data/test/lib/restforce/db/cleaner_test.rb +15 -9
- data/test/lib/restforce/db/collector_test.rb +13 -15
- data/test/lib/restforce/db/field_processor_test.rb +51 -0
- data/test/lib/restforce/db/initializer_test.rb +10 -13
- data/test/lib/restforce/db/runner_cache_test.rb +1 -0
- data/test/support/utilities.rb +1 -0
- metadata +5 -3
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_copy_/updates_the_record_with_the_attributes_from_the_copied_object.yml +0 -194
@@ -21,10 +21,10 @@ http_interactions:
|
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Fri, 15 May 2015 01:21:17 GMT
|
25
25
|
Set-Cookie:
|
26
|
-
- BrowserId=
|
27
|
-
|
26
|
+
- BrowserId=ycrKiY-VSXy8c7kYDprGvw;Path=/;Domain=.salesforce.com;Expires=Tue,
|
27
|
+
14-Jul-2015 01:21:17 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":"
|
40
|
+
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1431652877981","token_type":"Bearer","instance_url":"https://<host>","signature":"ihKlEx9EBOiOV8CEtkA0CyhVL84Jph0O4wgSR/kBtNk=","access_token":"00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb"}'
|
41
41
|
http_version:
|
42
|
-
recorded_at:
|
42
|
+
recorded_at: Fri, 15 May 2015 01:21:17 GMT
|
43
43
|
- request:
|
44
44
|
method: post
|
45
45
|
uri: https://<host>/services/data/v26.0/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!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb
|
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
|
+
- Fri, 15 May 2015 01:21:18 GMT
|
67
67
|
Set-Cookie:
|
68
|
-
- BrowserId=
|
69
|
-
|
68
|
+
- BrowserId=ojATh974RBiT8Jhmh1Vwcg;Path=/;Domain=.salesforce.com;Expires=Tue,
|
69
|
+
14-Jul-2015 01:21:18 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=710/15000
|
74
74
|
Location:
|
75
|
-
- "/services/data/v26.0/sobjects/Contact/
|
75
|
+
- "/services/data/v26.0/sobjects/Contact/0031a000003QISaAAO"
|
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":"
|
82
|
+
string: '{"id":"0031a000003QISaAAO","success":true,"errors":[]}'
|
83
83
|
http_version:
|
84
|
-
recorded_at:
|
84
|
+
recorded_at: Fri, 15 May 2015 01:21:19 GMT
|
85
85
|
- request:
|
86
86
|
method: post
|
87
87
|
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c
|
88
88
|
body:
|
89
89
|
encoding: UTF-8
|
90
|
-
string: '{"Friend__c":"
|
90
|
+
string: '{"Friend__c":"0031a000003QISaAAO"}'
|
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!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb
|
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
|
+
- Fri, 15 May 2015 01:21:20 GMT
|
109
109
|
Set-Cookie:
|
110
|
-
- BrowserId=
|
111
|
-
|
110
|
+
- BrowserId=rgmUNyvzQLqH7P75S2Ms4A;Path=/;Domain=.salesforce.com;Expires=Tue,
|
111
|
+
14-Jul-2015 01:21:20 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=709/15000
|
116
116
|
Location:
|
117
|
-
- "/services/data/v26.0/sobjects/CustomObject__c/
|
117
|
+
- "/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEKAA0"
|
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":"
|
124
|
+
string: '{"id":"a001a000001ZoEKAA0","success":true,"errors":[]}'
|
125
125
|
http_version:
|
126
|
-
recorded_at:
|
126
|
+
recorded_at: Fri, 15 May 2015 01:21:20 GMT
|
127
127
|
- request:
|
128
128
|
method: post
|
129
129
|
uri: https://<host>/services/data/v26.0/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!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb
|
140
140
|
Accept-Encoding:
|
141
141
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
142
142
|
Accept:
|
@@ -147,25 +147,25 @@ http_interactions:
|
|
147
147
|
message: Created
|
148
148
|
headers:
|
149
149
|
Date:
|
150
|
-
-
|
150
|
+
- Fri, 15 May 2015 01:21:21 GMT
|
151
151
|
Set-Cookie:
|
152
|
-
- BrowserId=
|
153
|
-
|
152
|
+
- BrowserId=rsOegzxVS9Ku9M2HCJ6DFQ;Path=/;Domain=.salesforce.com;Expires=Tue,
|
153
|
+
14-Jul-2015 01:21:21 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=710/15000
|
158
158
|
Location:
|
159
|
-
- "/services/data/v26.0/sobjects/Contact/
|
159
|
+
- "/services/data/v26.0/sobjects/Contact/0031a000003QISfAAO"
|
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":"
|
166
|
+
string: '{"id":"0031a000003QISfAAO","success":true,"errors":[]}'
|
167
167
|
http_version:
|
168
|
-
recorded_at:
|
168
|
+
recorded_at: Fri, 15 May 2015 01:21:21 GMT
|
169
169
|
- request:
|
170
170
|
method: get
|
171
171
|
uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c
|
@@ -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!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb
|
180
180
|
Accept-Encoding:
|
181
181
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
182
182
|
Accept:
|
@@ -187,36 +187,89 @@ http_interactions:
|
|
187
187
|
message: OK
|
188
188
|
headers:
|
189
189
|
Date:
|
190
|
-
-
|
190
|
+
- Fri, 15 May 2015 01:21:22 GMT
|
191
191
|
Set-Cookie:
|
192
|
-
- BrowserId=
|
193
|
-
|
192
|
+
- BrowserId=LcONRdbQTb2aNqlCiZWkGA;Path=/;Domain=.salesforce.com;Expires=Tue,
|
193
|
+
14-Jul-2015 01:21:22 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=711/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":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/
|
204
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEKAA0"},"Id":"a001a000001ZoEKAA0","SystemModstamp":"2015-05-15T01:21:20.000+0000","Name":"a001a000001ZoEK","Example_Field__c":null,"Friend__c":"0031a000003QISaAAO"}]}'
|
205
205
|
http_version:
|
206
|
-
recorded_at:
|
206
|
+
recorded_at: Fri, 15 May 2015 01:21:22 GMT
|
207
|
+
- request:
|
208
|
+
method: get
|
209
|
+
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/describe
|
210
|
+
body:
|
211
|
+
encoding: US-ASCII
|
212
|
+
string: ''
|
213
|
+
headers:
|
214
|
+
User-Agent:
|
215
|
+
- Faraday v0.9.1
|
216
|
+
Authorization:
|
217
|
+
- OAuth 00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb
|
218
|
+
Accept-Encoding:
|
219
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
220
|
+
Accept:
|
221
|
+
- "*/*"
|
222
|
+
response:
|
223
|
+
status:
|
224
|
+
code: 200
|
225
|
+
message: OK
|
226
|
+
headers:
|
227
|
+
Date:
|
228
|
+
- Fri, 15 May 2015 01:21:23 GMT
|
229
|
+
Set-Cookie:
|
230
|
+
- BrowserId=H--mCFTPRoSHWpkkY4THoA;Path=/;Domain=.salesforce.com;Expires=Tue,
|
231
|
+
14-Jul-2015 01:21:23 GMT
|
232
|
+
Expires:
|
233
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
234
|
+
Sforce-Limit-Info:
|
235
|
+
- api-usage=709/15000
|
236
|
+
Org.eclipse.jetty.server.include.etag:
|
237
|
+
- 7057c783
|
238
|
+
Last-Modified:
|
239
|
+
- Wed, 01 Apr 2015 17:47:03 GMT
|
240
|
+
Content-Type:
|
241
|
+
- application/json;charset=UTF-8
|
242
|
+
Etag:
|
243
|
+
- 7057c78-gzip"
|
244
|
+
Transfer-Encoding:
|
245
|
+
- chunked
|
246
|
+
body:
|
247
|
+
encoding: ASCII-8BIT
|
248
|
+
string: '{"activateable":false,"childRelationships":[{"cascadeDelete":true,"childSObject":"Attachment","deprecatedAndHidden":false,"field":"ParentId","relationshipName":"Attachments","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":"NewsFeed","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":"UserProfileFeed","deprecatedAndHidden":false,"field":"ParentId","relationshipName":null,"restrictedDelete":false}],"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
|
+
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
|
+
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
|
+
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
|
252
|
+
Date","length":0,"name":"CreatedDate","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":"Created
|
253
|
+
By ID","length":18,"name":"CreatedById","nameField":false,"namePointing":false,"nillable":false,"permissionable":false,"picklistValues":[],"precision":0,"referenceTo":["User"],"relationshipName":"CreatedBy","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":"Last
|
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
|
+
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
|
+
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":null,"searchable":true,"triggerable":true,"undeletable":true,"updateable":true,"urls":{"uiEditTemplate":"https://<host>/{ID}/e","sobject":"/services/data/v26.0/sobjects/CustomObject__c","uiDetailTemplate":"https://<host>/{ID}","describe":"/services/data/v26.0/sobjects/CustomObject__c/describe","rowTemplate":"/services/data/v26.0/sobjects/CustomObject__c/{ID}","uiNewRecord":"https://<host>/a00/e"}}'
|
258
|
+
http_version:
|
259
|
+
recorded_at: Fri, 15 May 2015 01:21:23 GMT
|
207
260
|
- request:
|
208
261
|
method: patch
|
209
|
-
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/
|
262
|
+
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEKAA0
|
210
263
|
body:
|
211
264
|
encoding: UTF-8
|
212
|
-
string: '{"Friend__c":"
|
265
|
+
string: '{"Friend__c":"0031a000003QISfAAO"}'
|
213
266
|
headers:
|
214
267
|
User-Agent:
|
215
268
|
- Faraday v0.9.1
|
216
269
|
Content-Type:
|
217
270
|
- application/json
|
218
271
|
Authorization:
|
219
|
-
- OAuth 00D1a000000H3O9!
|
272
|
+
- OAuth 00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb
|
220
273
|
Accept-Encoding:
|
221
274
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
222
275
|
Accept:
|
@@ -227,22 +280,22 @@ http_interactions:
|
|
227
280
|
message: No Content
|
228
281
|
headers:
|
229
282
|
Date:
|
230
|
-
-
|
283
|
+
- Fri, 15 May 2015 01:21:24 GMT
|
231
284
|
Set-Cookie:
|
232
|
-
- BrowserId=
|
233
|
-
|
285
|
+
- BrowserId=UXloIxtWTvWEVsjrl5Yn4w;Path=/;Domain=.salesforce.com;Expires=Tue,
|
286
|
+
14-Jul-2015 01:21:24 GMT
|
234
287
|
Expires:
|
235
288
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
236
289
|
Sforce-Limit-Info:
|
237
|
-
- api-usage=
|
290
|
+
- api-usage=711/15000
|
238
291
|
body:
|
239
292
|
encoding: UTF-8
|
240
293
|
string: ''
|
241
294
|
http_version:
|
242
|
-
recorded_at:
|
295
|
+
recorded_at: Fri, 15 May 2015 01:21:24 GMT
|
243
296
|
- request:
|
244
297
|
method: get
|
245
|
-
uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%
|
298
|
+
uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001ZoEKAA0%27
|
246
299
|
body:
|
247
300
|
encoding: US-ASCII
|
248
301
|
string: ''
|
@@ -250,7 +303,7 @@ http_interactions:
|
|
250
303
|
User-Agent:
|
251
304
|
- Faraday v0.9.1
|
252
305
|
Authorization:
|
253
|
-
- OAuth 00D1a000000H3O9!
|
306
|
+
- OAuth 00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb
|
254
307
|
Accept-Encoding:
|
255
308
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
256
309
|
Accept:
|
@@ -261,26 +314,26 @@ http_interactions:
|
|
261
314
|
message: OK
|
262
315
|
headers:
|
263
316
|
Date:
|
264
|
-
-
|
317
|
+
- Fri, 15 May 2015 01:21:25 GMT
|
265
318
|
Set-Cookie:
|
266
|
-
- BrowserId=
|
267
|
-
|
319
|
+
- BrowserId=OBI-joxoRqKDHKGfMJ1WnA;Path=/;Domain=.salesforce.com;Expires=Tue,
|
320
|
+
14-Jul-2015 01:21:25 GMT
|
268
321
|
Expires:
|
269
322
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
270
323
|
Sforce-Limit-Info:
|
271
|
-
- api-usage=
|
324
|
+
- api-usage=709/15000
|
272
325
|
Content-Type:
|
273
326
|
- application/json;charset=UTF-8
|
274
327
|
Transfer-Encoding:
|
275
328
|
- chunked
|
276
329
|
body:
|
277
330
|
encoding: ASCII-8BIT
|
278
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/
|
331
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEKAA0"},"Id":"a001a000001ZoEKAA0","SystemModstamp":"2015-05-15T01:21:24.000+0000","Name":"a001a000001ZoEK","Example_Field__c":null,"Friend__c":"0031a000003QISfAAO"}]}'
|
279
332
|
http_version:
|
280
|
-
recorded_at:
|
333
|
+
recorded_at: Fri, 15 May 2015 01:21:25 GMT
|
281
334
|
- request:
|
282
335
|
method: get
|
283
|
-
uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%
|
336
|
+
uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001ZoEKAA0%27
|
284
337
|
body:
|
285
338
|
encoding: US-ASCII
|
286
339
|
string: ''
|
@@ -288,7 +341,7 @@ http_interactions:
|
|
288
341
|
User-Agent:
|
289
342
|
- Faraday v0.9.1
|
290
343
|
Authorization:
|
291
|
-
- OAuth 00D1a000000H3O9!
|
344
|
+
- OAuth 00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb
|
292
345
|
Accept-Encoding:
|
293
346
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
294
347
|
Accept:
|
@@ -299,26 +352,26 @@ http_interactions:
|
|
299
352
|
message: OK
|
300
353
|
headers:
|
301
354
|
Date:
|
302
|
-
-
|
355
|
+
- Fri, 15 May 2015 01:21:26 GMT
|
303
356
|
Set-Cookie:
|
304
|
-
- BrowserId=
|
305
|
-
|
357
|
+
- BrowserId=Ny0hKBGbS5qpYxHxyYc6Ag;Path=/;Domain=.salesforce.com;Expires=Tue,
|
358
|
+
14-Jul-2015 01:21:26 GMT
|
306
359
|
Expires:
|
307
360
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
308
361
|
Sforce-Limit-Info:
|
309
|
-
- api-usage=
|
362
|
+
- api-usage=708/15000
|
310
363
|
Content-Type:
|
311
364
|
- application/json;charset=UTF-8
|
312
365
|
Transfer-Encoding:
|
313
366
|
- chunked
|
314
367
|
body:
|
315
368
|
encoding: ASCII-8BIT
|
316
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/
|
369
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEKAA0"},"Id":"a001a000001ZoEKAA0","SystemModstamp":"2015-05-15T01:21:24.000+0000","Name":"a001a000001ZoEK","Example_Field__c":null,"Friend__c":"0031a000003QISfAAO"}]}'
|
317
370
|
http_version:
|
318
|
-
recorded_at:
|
371
|
+
recorded_at: Fri, 15 May 2015 01:21:26 GMT
|
319
372
|
- request:
|
320
373
|
method: delete
|
321
|
-
uri: https://<host>/services/data/v26.0/sobjects/Contact/
|
374
|
+
uri: https://<host>/services/data/v26.0/sobjects/Contact/0031a000003QISaAAO
|
322
375
|
body:
|
323
376
|
encoding: US-ASCII
|
324
377
|
string: ''
|
@@ -326,7 +379,7 @@ http_interactions:
|
|
326
379
|
User-Agent:
|
327
380
|
- Faraday v0.9.1
|
328
381
|
Authorization:
|
329
|
-
- OAuth 00D1a000000H3O9!
|
382
|
+
- OAuth 00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb
|
330
383
|
Accept-Encoding:
|
331
384
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
332
385
|
Accept:
|
@@ -337,22 +390,22 @@ http_interactions:
|
|
337
390
|
message: No Content
|
338
391
|
headers:
|
339
392
|
Date:
|
340
|
-
-
|
393
|
+
- Fri, 15 May 2015 01:21:27 GMT
|
341
394
|
Set-Cookie:
|
342
|
-
- BrowserId
|
343
|
-
|
395
|
+
- BrowserId=-DB4lHb2Tg26ZcLbx0lTVg;Path=/;Domain=.salesforce.com;Expires=Tue,
|
396
|
+
14-Jul-2015 01:21:27 GMT
|
344
397
|
Expires:
|
345
398
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
346
399
|
Sforce-Limit-Info:
|
347
|
-
- api-usage=
|
400
|
+
- api-usage=709/15000
|
348
401
|
body:
|
349
402
|
encoding: UTF-8
|
350
403
|
string: ''
|
351
404
|
http_version:
|
352
|
-
recorded_at:
|
405
|
+
recorded_at: Fri, 15 May 2015 01:21:27 GMT
|
353
406
|
- request:
|
354
407
|
method: delete
|
355
|
-
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/
|
408
|
+
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEKAA0
|
356
409
|
body:
|
357
410
|
encoding: US-ASCII
|
358
411
|
string: ''
|
@@ -360,7 +413,7 @@ http_interactions:
|
|
360
413
|
User-Agent:
|
361
414
|
- Faraday v0.9.1
|
362
415
|
Authorization:
|
363
|
-
- OAuth 00D1a000000H3O9!
|
416
|
+
- OAuth 00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb
|
364
417
|
Accept-Encoding:
|
365
418
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
366
419
|
Accept:
|
@@ -371,22 +424,22 @@ http_interactions:
|
|
371
424
|
message: No Content
|
372
425
|
headers:
|
373
426
|
Date:
|
374
|
-
-
|
427
|
+
- Fri, 15 May 2015 01:21:28 GMT
|
375
428
|
Set-Cookie:
|
376
|
-
- BrowserId
|
377
|
-
|
429
|
+
- BrowserId=-gNdqmVpQ3uWI62EH257Mg;Path=/;Domain=.salesforce.com;Expires=Tue,
|
430
|
+
14-Jul-2015 01:21:28 GMT
|
378
431
|
Expires:
|
379
432
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
380
433
|
Sforce-Limit-Info:
|
381
|
-
- api-usage=
|
434
|
+
- api-usage=710/15000
|
382
435
|
body:
|
383
436
|
encoding: UTF-8
|
384
437
|
string: ''
|
385
438
|
http_version:
|
386
|
-
recorded_at:
|
439
|
+
recorded_at: Fri, 15 May 2015 01:21:28 GMT
|
387
440
|
- request:
|
388
441
|
method: delete
|
389
|
-
uri: https://<host>/services/data/v26.0/sobjects/Contact/
|
442
|
+
uri: https://<host>/services/data/v26.0/sobjects/Contact/0031a000003QISfAAO
|
390
443
|
body:
|
391
444
|
encoding: US-ASCII
|
392
445
|
string: ''
|
@@ -394,7 +447,7 @@ http_interactions:
|
|
394
447
|
User-Agent:
|
395
448
|
- Faraday v0.9.1
|
396
449
|
Authorization:
|
397
|
-
- OAuth 00D1a000000H3O9!
|
450
|
+
- OAuth 00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb
|
398
451
|
Accept-Encoding:
|
399
452
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
400
453
|
Accept:
|
@@ -405,17 +458,17 @@ http_interactions:
|
|
405
458
|
message: No Content
|
406
459
|
headers:
|
407
460
|
Date:
|
408
|
-
-
|
461
|
+
- Fri, 15 May 2015 01:21:29 GMT
|
409
462
|
Set-Cookie:
|
410
|
-
- BrowserId=
|
411
|
-
|
463
|
+
- BrowserId=ezbSD_kUTTWkbit0jFGirg;Path=/;Domain=.salesforce.com;Expires=Tue,
|
464
|
+
14-Jul-2015 01:21:29 GMT
|
412
465
|
Expires:
|
413
466
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
414
467
|
Sforce-Limit-Info:
|
415
|
-
- api-usage=
|
468
|
+
- api-usage=714/15000
|
416
469
|
body:
|
417
470
|
encoding: UTF-8
|
418
471
|
string: ''
|
419
472
|
http_version:
|
420
|
-
recorded_at:
|
473
|
+
recorded_at: Fri, 15 May 2015 01:21:29 GMT
|
421
474
|
recorded_with: VCR 2.9.3
|