13.07.2015 Views

Database.com REST API Developer's Guide - Salesforce.com

Database.com REST API Developer's Guide - Salesforce.com

Database.com REST API Developer's Guide - Salesforce.com

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ReferenceSObject Rows by External IDAuthenticationAuthorization: Bearer tokenParametersParameterfieldsDescriptionOptional list of fields used to return values for.Examples• For an example of retrieving field values using GET, see Get Field Values from Records on page 36.• For an example of updating a record using PATCH, see Update a Record on page 34.• For an example of deleting a record using DELETE, see Delete a Record on page 35.SObject Rows by External IDCreates new records or updates existing records (upserts records) based on the value of a specified external ID field.• If the specified value doesn't exist, a new record is created.• If a record does exist with that value, the field values specified in the request body are updated.• If the value is not unique, the <strong>REST</strong> <strong>API</strong> returns a 300 response with the list of matching records.Note: Do not specify Id or an external ID field in the request body or an error is generated.URIFormats/vXX.X/sobjects/SObjectName/fieldName/fieldValueJSON, XMLHTTP MethodHEAD, GET, PATCH, DELETEAuthenticationAuthorization: Bearer tokenParametersNoneExamples• For an example of retrieving a record based on an external ID, see Retrieve a Record Using an External ID on page36.• For examples of creating and updating records based on external IDs, see Insert or Update (Upsert) a Record Usingan External ID on page 37.61

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!