restforce-db 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/restforce/db/associations/base.rb +7 -7
- data/lib/restforce/db/associations/belongs_to.rb +6 -10
- data/lib/restforce/db/associations/foreign_key.rb +1 -2
- data/lib/restforce/db/associations/has_many.rb +2 -1
- data/lib/restforce/db/associations/has_one.rb +2 -1
- data/lib/restforce/db/cleaner.rb +25 -3
- data/lib/restforce/db/configuration.rb +7 -0
- data/lib/restforce/db/record_types/active_record.rb +5 -1
- data/lib/restforce/db/version.rb +1 -1
- data/lib/restforce/db.rb +1 -0
- data/test/cassettes/Restforce_DB/accessing_Salesforce/uses_the_configured_credentials.yml +1 -1
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/returns_an_associated_record_populated_with_the_Salesforce_attributes.yml +17 -17
- 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 +11 -11
- 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 +17 -17
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_associated_record_has_been_cached/uses_the_cached_record.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +14 -14
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/with_an_unrelated_association_mapping/proceeds_without_raising_an_error.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/returns_a_hash_of_the_associated_records_lookup_IDs.yml +11 -11
- 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 +119 -0
- 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 +6 -6
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/builds_a_number_of_associated_records_from_the_data_in_Salesforce.yml +29 -29
- 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 +11 -11
- 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 +29 -29
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_associated_records_have_been_cached/uses_the_cached_records.yml +29 -29
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +9 -9
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +29 -29
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +11 -11
- 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 +25 -25
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/returns_an_associated_record_populated_with_the_Salesforce_attributes.yml +17 -17
- 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 +11 -11
- 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 +17 -17
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_associated_record_has_been_cached/uses_the_cached_record.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +14 -14
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +17 -17
- 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 +30 -30
- 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 +33 -33
- 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 +6 -6
- 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 +238 -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 → drops_the_synchronized_database_record.yml} +11 -11
- 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 +12 -12
- data/test/cassettes/Restforce_DB_Collector/_run/given_a_Salesforce_record_with_an_associated_database_record/returns_the_attributes_from_both_records.yml +12 -12
- data/test/cassettes/Restforce_DB_Collector/_run/given_an_existing_Salesforce_record/returns_the_attributes_from_the_Salesforce_record.yml +12 -12
- data/test/cassettes/Restforce_DB_Collector/_run/given_an_existing_database_record/returns_the_attributes_from_the_database_record.yml +3 -3
- data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_Salesforce_record/for_a_Passive_strategy/does_not_create_a_database_record.yml +6 -6
- data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_Salesforce_record/for_an_Always_strategy/creates_a_matching_database_record.yml +10 -10
- data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_database_record/for_an_Always_strategy/populates_Salesforce_with_the_new_record.yml +17 -17
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_synced_/when_a_matching_database_record_exists/returns_true.yml +9 -9
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_synced_/when_no_matching_database_record_exists/returns_false.yml +9 -9
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_local_record_with_the_passed_attributes.yml +14 -14
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_record_in_Salesforce_with_the_passed_attributes.yml +17 -17
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_all/returns_a_list_of_the_existing_records_in_Salesforce.yml +9 -9
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/creates_a_record_in_Salesforce_from_the_passed_database_record_s_attributes.yml +12 -12
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/updates_the_database_record_with_the_Salesforce_record_s_ID.yml +12 -12
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/finds_existing_records_in_Salesforce.yml +9 -9
- 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 +8 -8
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/given_a_set_of_mapping_conditions/when_a_record_meets_the_conditions/finds_the_record.yml +9 -9
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/returns_nil_when_no_matching_record_exists.yml +3 -3
- data/test/cassettes/Restforce_DB_Strategies_Always/_build_/given_a_Salesforce_record/wants_to_build_a_new_matching_record.yml +9 -9
- 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 +9 -9
- data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_a_synchronized_association_record/wants_to_build_a_new_record.yml +17 -17
- 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 +14 -14
- 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 +17 -17
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_database_record.yml +14 -14
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_salesforce_record.yml +17 -17
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_no_associated_database_record/does_nothing_for_this_specific_mapping.yml +12 -12
- data/test/lib/restforce/db/associations/belongs_to_test.rb +17 -0
- data/test/lib/restforce/db/cleaner_test.rb +20 -4
- data/test/support/active_record.rb +3 -0
- data/test/support/vcr.rb +8 -0
- metadata +5 -3
@@ -38,11 +38,11 @@ http_interactions:
|
|
38
38
|
body:
|
39
39
|
encoding: ASCII-8BIT
|
40
40
|
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1428526409339","token_type":"Bearer","instance_url":"https://<host>","signature":"EkDl2eLtEFsBSHRtR+7FoXVgwtAsCzKztj+g9CCKYM4=","access_token":"00D1a000000H3O9!AQ4AQNyTp4z9oP2.J3Cn7NYTEhEEQDKps55QWmUhH0v3eAk6P1DoAUmVHKUnCITNabWF1iOMeT46TMEQTZdyM7pnT5JNIYfj"}'
|
41
|
-
http_version:
|
41
|
+
http_version:
|
42
42
|
recorded_at: Wed, 08 Apr 2015 20:53:28 GMT
|
43
43
|
- request:
|
44
44
|
method: post
|
45
|
-
uri: https://<host>/services/data
|
45
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
|
46
46
|
body:
|
47
47
|
encoding: UTF-8
|
48
48
|
string: '{"Name":"Custom object","Example_Field__c":"Some sample text"}'
|
@@ -72,7 +72,7 @@ http_interactions:
|
|
72
72
|
Sforce-Limit-Info:
|
73
73
|
- api-usage=16/15000
|
74
74
|
Location:
|
75
|
-
- "/services/data
|
75
|
+
- "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LNKZAA4"
|
76
76
|
Content-Type:
|
77
77
|
- application/json;charset=UTF-8
|
78
78
|
Transfer-Encoding:
|
@@ -80,11 +80,11 @@ http_interactions:
|
|
80
80
|
body:
|
81
81
|
encoding: ASCII-8BIT
|
82
82
|
string: '{"id":"a001a000001LNKZAA4","success":true,"errors":[]}'
|
83
|
-
http_version:
|
83
|
+
http_version:
|
84
84
|
recorded_at: Wed, 08 Apr 2015 20:53:28 GMT
|
85
85
|
- request:
|
86
86
|
method: get
|
87
|
-
uri: https://<host>/services/data
|
87
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c
|
88
88
|
body:
|
89
89
|
encoding: US-ASCII
|
90
90
|
string: ''
|
@@ -117,14 +117,14 @@ http_interactions:
|
|
117
117
|
- chunked
|
118
118
|
body:
|
119
119
|
encoding: ASCII-8BIT
|
120
|
-
string: '{"totalSize":2,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data
|
121
|
-
object","Example_Field__c":"Some sample text"},{"attributes":{"type":"CustomObject__c","url":"/services/data
|
120
|
+
string: '{"totalSize":2,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LNK5AAO"},"Id":"a001a000001LNK5AAO","SystemModstamp":"2015-04-08T20:49:02.000+0000","Name":"Custom
|
121
|
+
object","Example_Field__c":"Some sample text"},{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LNKZAA4"},"Id":"a001a000001LNKZAA4","SystemModstamp":"2015-04-08T20:53:29.000+0000","Name":"Custom
|
122
122
|
object","Example_Field__c":"Some sample text"}]}'
|
123
|
-
http_version:
|
123
|
+
http_version:
|
124
124
|
recorded_at: Wed, 08 Apr 2015 20:53:28 GMT
|
125
125
|
- request:
|
126
126
|
method: delete
|
127
|
-
uri: https://<host>/services/data
|
127
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LNKZAA4
|
128
128
|
body:
|
129
129
|
encoding: US-ASCII
|
130
130
|
string: ''
|
@@ -154,6 +154,6 @@ http_interactions:
|
|
154
154
|
body:
|
155
155
|
encoding: UTF-8
|
156
156
|
string: ''
|
157
|
-
http_version:
|
157
|
+
http_version:
|
158
158
|
recorded_at: Wed, 08 Apr 2015 20:53:29 GMT
|
159
159
|
recorded_with: VCR 2.9.3
|
@@ -38,11 +38,11 @@ http_interactions:
|
|
38
38
|
body:
|
39
39
|
encoding: ASCII-8BIT
|
40
40
|
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1431654460979","token_type":"Bearer","instance_url":"https://<host>","signature":"/pcrxVbljG/4hKqmruGYfY8UiObCMPYIx3CgyVTV2Wk=","access_token":"00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb"}'
|
41
|
-
http_version:
|
41
|
+
http_version:
|
42
42
|
recorded_at: Fri, 15 May 2015 01:47:40 GMT
|
43
43
|
- request:
|
44
44
|
method: get
|
45
|
-
uri: https://<host>/services/data
|
45
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c
|
46
46
|
body:
|
47
47
|
encoding: US-ASCII
|
48
48
|
string: ''
|
@@ -76,11 +76,11 @@ http_interactions:
|
|
76
76
|
body:
|
77
77
|
encoding: ASCII-8BIT
|
78
78
|
string: '{"totalSize":0,"done":true,"records":[]}'
|
79
|
-
http_version:
|
79
|
+
http_version:
|
80
80
|
recorded_at: Fri, 15 May 2015 01:47:42 GMT
|
81
81
|
- request:
|
82
82
|
method: get
|
83
|
-
uri: https://<host>/services/data
|
83
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/describe
|
84
84
|
body:
|
85
85
|
encoding: US-ASCII
|
86
86
|
string: ''
|
@@ -128,12 +128,12 @@ http_interactions:
|
|
128
128
|
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
|
129
129
|
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
|
130
130
|
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
|
131
|
-
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
|
132
|
-
http_version:
|
131
|
+
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/<api_version>/sobjects/CustomObject__c","uiDetailTemplate":"https://<host>/{ID}","describe":"/services/data/<api_version>/sobjects/CustomObject__c/describe","rowTemplate":"/services/data/<api_version>/sobjects/CustomObject__c/{ID}","uiNewRecord":"https://<host>/a00/e"}}'
|
132
|
+
http_version:
|
133
133
|
recorded_at: Fri, 15 May 2015 01:47:43 GMT
|
134
134
|
- request:
|
135
135
|
method: post
|
136
|
-
uri: https://<host>/services/data
|
136
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
|
137
137
|
body:
|
138
138
|
encoding: UTF-8
|
139
139
|
string: '{"Name":"Custom object","Example_Field__c":"Some sample text"}'
|
@@ -163,7 +163,7 @@ http_interactions:
|
|
163
163
|
Sforce-Limit-Info:
|
164
164
|
- api-usage=812/15000
|
165
165
|
Location:
|
166
|
-
- "/services/data
|
166
|
+
- "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoF8AAK"
|
167
167
|
Content-Type:
|
168
168
|
- application/json;charset=UTF-8
|
169
169
|
Transfer-Encoding:
|
@@ -171,11 +171,11 @@ http_interactions:
|
|
171
171
|
body:
|
172
172
|
encoding: ASCII-8BIT
|
173
173
|
string: '{"id":"a001a000001ZoF8AAK","success":true,"errors":[]}'
|
174
|
-
http_version:
|
174
|
+
http_version:
|
175
175
|
recorded_at: Fri, 15 May 2015 01:47:44 GMT
|
176
176
|
- request:
|
177
177
|
method: get
|
178
|
-
uri: https://<host>/services/data
|
178
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001ZoF8AAK%27
|
179
179
|
body:
|
180
180
|
encoding: US-ASCII
|
181
181
|
string: ''
|
@@ -208,13 +208,13 @@ http_interactions:
|
|
208
208
|
- chunked
|
209
209
|
body:
|
210
210
|
encoding: ASCII-8BIT
|
211
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data
|
211
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoF8AAK"},"Id":"a001a000001ZoF8AAK","SystemModstamp":"2015-05-15T01:47:44.000+0000","Name":"Custom
|
212
212
|
object","Example_Field__c":"Some sample text"}]}'
|
213
|
-
http_version:
|
213
|
+
http_version:
|
214
214
|
recorded_at: Fri, 15 May 2015 01:47:45 GMT
|
215
215
|
- request:
|
216
216
|
method: get
|
217
|
-
uri: https://<host>/services/data
|
217
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001ZoF8AAK%27
|
218
218
|
body:
|
219
219
|
encoding: US-ASCII
|
220
220
|
string: ''
|
@@ -247,13 +247,13 @@ http_interactions:
|
|
247
247
|
- chunked
|
248
248
|
body:
|
249
249
|
encoding: ASCII-8BIT
|
250
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data
|
250
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoF8AAK"},"Id":"a001a000001ZoF8AAK","SystemModstamp":"2015-05-15T01:47:44.000+0000","Name":"Custom
|
251
251
|
object","Example_Field__c":"Some sample text"}]}'
|
252
|
-
http_version:
|
252
|
+
http_version:
|
253
253
|
recorded_at: Fri, 15 May 2015 01:47:46 GMT
|
254
254
|
- request:
|
255
255
|
method: delete
|
256
|
-
uri: https://<host>/services/data
|
256
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoF8AAK
|
257
257
|
body:
|
258
258
|
encoding: US-ASCII
|
259
259
|
string: ''
|
@@ -283,6 +283,6 @@ http_interactions:
|
|
283
283
|
body:
|
284
284
|
encoding: UTF-8
|
285
285
|
string: ''
|
286
|
-
http_version:
|
286
|
+
http_version:
|
287
287
|
recorded_at: Fri, 15 May 2015 01:47:47 GMT
|
288
288
|
recorded_with: VCR 2.9.3
|
@@ -38,11 +38,11 @@ http_interactions:
|
|
38
38
|
body:
|
39
39
|
encoding: ASCII-8BIT
|
40
40
|
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1428332485560","token_type":"Bearer","instance_url":"https://<host>","signature":"GBS/8ndYpWxyywchO4vevnh1DcQqCs1JQ+G8a/Ju8T4=","access_token":"00D1a000000H3O9!AQ4AQFhXX0t0My8qCHdrUMfRwg3B5FPFTjOwddPzvTaHu0t9H1xiDVKOSpDxKItHiqnvYyMKqZVwaC5AIJvYk_bzVt8m7Vil"}'
|
41
|
-
http_version:
|
41
|
+
http_version:
|
42
42
|
recorded_at: Mon, 06 Apr 2015 15:01:25 GMT
|
43
43
|
- request:
|
44
44
|
method: post
|
45
|
-
uri: https://<host>/services/data
|
45
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
|
46
46
|
body:
|
47
47
|
encoding: UTF-8
|
48
48
|
string: '{"Name":"Sample object"}'
|
@@ -72,7 +72,7 @@ http_interactions:
|
|
72
72
|
Sforce-Limit-Info:
|
73
73
|
- api-usage=25/15000
|
74
74
|
Location:
|
75
|
-
- "/services/data
|
75
|
+
- "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LGpnAAG"
|
76
76
|
Content-Type:
|
77
77
|
- application/json;charset=UTF-8
|
78
78
|
Transfer-Encoding:
|
@@ -80,11 +80,11 @@ http_interactions:
|
|
80
80
|
body:
|
81
81
|
encoding: ASCII-8BIT
|
82
82
|
string: '{"id":"a001a000001LGpnAAG","success":true,"errors":[]}'
|
83
|
-
http_version:
|
83
|
+
http_version:
|
84
84
|
recorded_at: Mon, 06 Apr 2015 15:01:27 GMT
|
85
85
|
- request:
|
86
86
|
method: get
|
87
|
-
uri: https://<host>/services/data
|
87
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001LGpnAAG%27
|
88
88
|
body:
|
89
89
|
encoding: US-ASCII
|
90
90
|
string: ''
|
@@ -117,13 +117,13 @@ http_interactions:
|
|
117
117
|
- chunked
|
118
118
|
body:
|
119
119
|
encoding: ASCII-8BIT
|
120
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data
|
120
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LGpnAAG"},"Id":"a001a000001LGpnAAG","SystemModstamp":"2015-04-06T15:01:27.000+0000","Name":"Sample
|
121
121
|
object","Example_Field__c":null}]}'
|
122
|
-
http_version:
|
122
|
+
http_version:
|
123
123
|
recorded_at: Mon, 06 Apr 2015 15:01:28 GMT
|
124
124
|
- request:
|
125
125
|
method: delete
|
126
|
-
uri: https://<host>/services/data
|
126
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LGpnAAG
|
127
127
|
body:
|
128
128
|
encoding: US-ASCII
|
129
129
|
string: ''
|
@@ -153,6 +153,6 @@ http_interactions:
|
|
153
153
|
body:
|
154
154
|
encoding: UTF-8
|
155
155
|
string: ''
|
156
|
-
http_version:
|
156
|
+
http_version:
|
157
157
|
recorded_at: Mon, 06 Apr 2015 15:01:31 GMT
|
158
158
|
recorded_with: VCR 2.9.3
|
@@ -38,11 +38,11 @@ http_interactions:
|
|
38
38
|
body:
|
39
39
|
encoding: ASCII-8BIT
|
40
40
|
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1428332480120","token_type":"Bearer","instance_url":"https://<host>","signature":"EUwqb7x31VJ+yJ0lgsC7JwgnXdSItzgBAL8Kos1gDnQ=","access_token":"00D1a000000H3O9!AQ4AQFhXX0t0My8qCHdrUMfRwg3B5FPFTjOwddPzvTaHu0t9H1xiDVKOSpDxKItHiqnvYyMKqZVwaC5AIJvYk_bzVt8m7Vil"}'
|
41
|
-
http_version:
|
41
|
+
http_version:
|
42
42
|
recorded_at: Mon, 06 Apr 2015 15:01:20 GMT
|
43
43
|
- request:
|
44
44
|
method: post
|
45
|
-
uri: https://<host>/services/data
|
45
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
|
46
46
|
body:
|
47
47
|
encoding: UTF-8
|
48
48
|
string: '{"Name":"Sample object"}'
|
@@ -72,7 +72,7 @@ http_interactions:
|
|
72
72
|
Sforce-Limit-Info:
|
73
73
|
- api-usage=24/15000
|
74
74
|
Location:
|
75
|
-
- "/services/data
|
75
|
+
- "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LGpiAAG"
|
76
76
|
Content-Type:
|
77
77
|
- application/json;charset=UTF-8
|
78
78
|
Transfer-Encoding:
|
@@ -80,11 +80,11 @@ http_interactions:
|
|
80
80
|
body:
|
81
81
|
encoding: ASCII-8BIT
|
82
82
|
string: '{"id":"a001a000001LGpiAAG","success":true,"errors":[]}'
|
83
|
-
http_version:
|
83
|
+
http_version:
|
84
84
|
recorded_at: Mon, 06 Apr 2015 15:01:21 GMT
|
85
85
|
- request:
|
86
86
|
method: get
|
87
|
-
uri: https://<host>/services/data
|
87
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001LGpiAAG%27
|
88
88
|
body:
|
89
89
|
encoding: US-ASCII
|
90
90
|
string: ''
|
@@ -117,13 +117,13 @@ http_interactions:
|
|
117
117
|
- chunked
|
118
118
|
body:
|
119
119
|
encoding: ASCII-8BIT
|
120
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data
|
120
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LGpiAAG"},"Id":"a001a000001LGpiAAG","SystemModstamp":"2015-04-06T15:01:21.000+0000","Name":"Sample
|
121
121
|
object","Example_Field__c":null}]}'
|
122
|
-
http_version:
|
122
|
+
http_version:
|
123
123
|
recorded_at: Mon, 06 Apr 2015 15:01:23 GMT
|
124
124
|
- request:
|
125
125
|
method: delete
|
126
|
-
uri: https://<host>/services/data
|
126
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LGpiAAG
|
127
127
|
body:
|
128
128
|
encoding: US-ASCII
|
129
129
|
string: ''
|
@@ -153,6 +153,6 @@ http_interactions:
|
|
153
153
|
body:
|
154
154
|
encoding: UTF-8
|
155
155
|
string: ''
|
156
|
-
http_version:
|
156
|
+
http_version:
|
157
157
|
recorded_at: Mon, 06 Apr 2015 15:01:24 GMT
|
158
158
|
recorded_with: VCR 2.9.3
|
@@ -38,11 +38,11 @@ http_interactions:
|
|
38
38
|
body:
|
39
39
|
encoding: ASCII-8BIT
|
40
40
|
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1431652676216","token_type":"Bearer","instance_url":"https://<host>","signature":"QUIZ3gZogRPXpwbGfrjTuY4Gqojjf3jw7vDg9lqABuo=","access_token":"00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb"}'
|
41
|
-
http_version:
|
41
|
+
http_version:
|
42
42
|
recorded_at: Fri, 15 May 2015 01:17:56 GMT
|
43
43
|
- request:
|
44
44
|
method: post
|
45
|
-
uri: https://<host>/services/data
|
45
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
|
46
46
|
body:
|
47
47
|
encoding: UTF-8
|
48
48
|
string: '{"Name":"Sample object"}'
|
@@ -72,7 +72,7 @@ http_interactions:
|
|
72
72
|
Sforce-Limit-Info:
|
73
73
|
- api-usage=561/15000
|
74
74
|
Location:
|
75
|
-
- "/services/data
|
75
|
+
- "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoC9AAK"
|
76
76
|
Content-Type:
|
77
77
|
- application/json;charset=UTF-8
|
78
78
|
Transfer-Encoding:
|
@@ -80,11 +80,11 @@ http_interactions:
|
|
80
80
|
body:
|
81
81
|
encoding: ASCII-8BIT
|
82
82
|
string: '{"id":"a001a000001ZoC9AAK","success":true,"errors":[]}'
|
83
|
-
http_version:
|
83
|
+
http_version:
|
84
84
|
recorded_at: Fri, 15 May 2015 01:17:57 GMT
|
85
85
|
- request:
|
86
86
|
method: get
|
87
|
-
uri: https://<host>/services/data
|
87
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001ZoC9AAK%27
|
88
88
|
body:
|
89
89
|
encoding: US-ASCII
|
90
90
|
string: ''
|
@@ -117,13 +117,13 @@ http_interactions:
|
|
117
117
|
- chunked
|
118
118
|
body:
|
119
119
|
encoding: ASCII-8BIT
|
120
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data
|
120
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoC9AAK"},"Id":"a001a000001ZoC9AAK","SystemModstamp":"2015-05-15T01:17:57.000+0000","Name":"Sample
|
121
121
|
object","Example_Field__c":null}]}'
|
122
|
-
http_version:
|
122
|
+
http_version:
|
123
123
|
recorded_at: Fri, 15 May 2015 01:17:58 GMT
|
124
124
|
- request:
|
125
125
|
method: get
|
126
|
-
uri: https://<host>/services/data
|
126
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/describe
|
127
127
|
body:
|
128
128
|
encoding: US-ASCII
|
129
129
|
string: ''
|
@@ -171,12 +171,12 @@ http_interactions:
|
|
171
171
|
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
|
172
172
|
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
|
173
173
|
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
|
174
|
-
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
|
175
|
-
http_version:
|
174
|
+
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/<api_version>/sobjects/CustomObject__c","uiDetailTemplate":"https://<host>/{ID}","describe":"/services/data/<api_version>/sobjects/CustomObject__c/describe","rowTemplate":"/services/data/<api_version>/sobjects/CustomObject__c/{ID}","uiNewRecord":"https://<host>/a00/e"}}'
|
175
|
+
http_version:
|
176
176
|
recorded_at: Fri, 15 May 2015 01:17:59 GMT
|
177
177
|
- request:
|
178
178
|
method: patch
|
179
|
-
uri: https://<host>/services/data
|
179
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoC9AAK
|
180
180
|
body:
|
181
181
|
encoding: UTF-8
|
182
182
|
string: '{"Example_Field__c":"Some new text"}'
|
@@ -208,11 +208,11 @@ http_interactions:
|
|
208
208
|
body:
|
209
209
|
encoding: UTF-8
|
210
210
|
string: ''
|
211
|
-
http_version:
|
211
|
+
http_version:
|
212
212
|
recorded_at: Fri, 15 May 2015 01:18:00 GMT
|
213
213
|
- request:
|
214
214
|
method: delete
|
215
|
-
uri: https://<host>/services/data
|
215
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoC9AAK
|
216
216
|
body:
|
217
217
|
encoding: US-ASCII
|
218
218
|
string: ''
|
@@ -242,6 +242,6 @@ http_interactions:
|
|
242
242
|
body:
|
243
243
|
encoding: UTF-8
|
244
244
|
string: ''
|
245
|
-
http_version:
|
245
|
+
http_version:
|
246
246
|
recorded_at: Fri, 15 May 2015 01:18:01 GMT
|
247
247
|
recorded_with: VCR 2.9.3
|
@@ -38,11 +38,11 @@ http_interactions:
|
|
38
38
|
body:
|
39
39
|
encoding: ASCII-8BIT
|
40
40
|
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1431652682452","token_type":"Bearer","instance_url":"https://<host>","signature":"Qy102BJP9bM487axxMTKz9bQqdSZE51Y979XJlgdJuc=","access_token":"00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb"}'
|
41
|
-
http_version:
|
41
|
+
http_version:
|
42
42
|
recorded_at: Fri, 15 May 2015 01:18:02 GMT
|
43
43
|
- request:
|
44
44
|
method: post
|
45
|
-
uri: https://<host>/services/data
|
45
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
|
46
46
|
body:
|
47
47
|
encoding: UTF-8
|
48
48
|
string: '{"Name":"Sample object"}'
|
@@ -72,7 +72,7 @@ http_interactions:
|
|
72
72
|
Sforce-Limit-Info:
|
73
73
|
- api-usage=563/15000
|
74
74
|
Location:
|
75
|
-
- "/services/data
|
75
|
+
- "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoCEAA0"
|
76
76
|
Content-Type:
|
77
77
|
- application/json;charset=UTF-8
|
78
78
|
Transfer-Encoding:
|
@@ -80,11 +80,11 @@ http_interactions:
|
|
80
80
|
body:
|
81
81
|
encoding: ASCII-8BIT
|
82
82
|
string: '{"id":"a001a000001ZoCEAA0","success":true,"errors":[]}'
|
83
|
-
http_version:
|
83
|
+
http_version:
|
84
84
|
recorded_at: Fri, 15 May 2015 01:18:03 GMT
|
85
85
|
- request:
|
86
86
|
method: get
|
87
|
-
uri: https://<host>/services/data
|
87
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001ZoCEAA0%27
|
88
88
|
body:
|
89
89
|
encoding: US-ASCII
|
90
90
|
string: ''
|
@@ -117,13 +117,13 @@ http_interactions:
|
|
117
117
|
- chunked
|
118
118
|
body:
|
119
119
|
encoding: ASCII-8BIT
|
120
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data
|
120
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoCEAA0"},"Id":"a001a000001ZoCEAA0","SystemModstamp":"2015-05-15T01:18:03.000+0000","Name":"Sample
|
121
121
|
object","Example_Field__c":null}]}'
|
122
|
-
http_version:
|
122
|
+
http_version:
|
123
123
|
recorded_at: Fri, 15 May 2015 01:18:04 GMT
|
124
124
|
- request:
|
125
125
|
method: get
|
126
|
-
uri: https://<host>/services/data
|
126
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/describe
|
127
127
|
body:
|
128
128
|
encoding: US-ASCII
|
129
129
|
string: ''
|
@@ -171,12 +171,12 @@ http_interactions:
|
|
171
171
|
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
|
172
172
|
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
|
173
173
|
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
|
174
|
-
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
|
175
|
-
http_version:
|
174
|
+
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/<api_version>/sobjects/CustomObject__c","uiDetailTemplate":"https://<host>/{ID}","describe":"/services/data/<api_version>/sobjects/CustomObject__c/describe","rowTemplate":"/services/data/<api_version>/sobjects/CustomObject__c/{ID}","uiNewRecord":"https://<host>/a00/e"}}'
|
175
|
+
http_version:
|
176
176
|
recorded_at: Fri, 15 May 2015 01:18:05 GMT
|
177
177
|
- request:
|
178
178
|
method: patch
|
179
|
-
uri: https://<host>/services/data
|
179
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoCEAA0
|
180
180
|
body:
|
181
181
|
encoding: UTF-8
|
182
182
|
string: '{"Example_Field__c":"Some new text"}'
|
@@ -208,11 +208,11 @@ http_interactions:
|
|
208
208
|
body:
|
209
209
|
encoding: UTF-8
|
210
210
|
string: ''
|
211
|
-
http_version:
|
211
|
+
http_version:
|
212
212
|
recorded_at: Fri, 15 May 2015 01:18:06 GMT
|
213
213
|
- request:
|
214
214
|
method: get
|
215
|
-
uri: https://<host>/services/data
|
215
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001ZoCEAA0%27
|
216
216
|
body:
|
217
217
|
encoding: US-ASCII
|
218
218
|
string: ''
|
@@ -245,13 +245,13 @@ http_interactions:
|
|
245
245
|
- chunked
|
246
246
|
body:
|
247
247
|
encoding: ASCII-8BIT
|
248
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data
|
248
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoCEAA0"},"Id":"a001a000001ZoCEAA0","SystemModstamp":"2015-05-15T01:18:06.000+0000","Name":"Sample
|
249
249
|
object","Example_Field__c":"Some new text"}]}'
|
250
|
-
http_version:
|
250
|
+
http_version:
|
251
251
|
recorded_at: Fri, 15 May 2015 01:18:07 GMT
|
252
252
|
- request:
|
253
253
|
method: delete
|
254
|
-
uri: https://<host>/services/data
|
254
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoCEAA0
|
255
255
|
body:
|
256
256
|
encoding: US-ASCII
|
257
257
|
string: ''
|
@@ -281,6 +281,6 @@ http_interactions:
|
|
281
281
|
body:
|
282
282
|
encoding: UTF-8
|
283
283
|
string: ''
|
284
|
-
http_version:
|
284
|
+
http_version:
|
285
285
|
recorded_at: Fri, 15 May 2015 01:18:08 GMT
|
286
286
|
recorded_with: VCR 2.9.3
|