Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

OperationDescription
createCreates a record in Salesforce.
createMultipleRecordsCreates multiple sObject(s) in Salesforce.
createNestedRecordsCreate nested records for sObjects.
updateUpdates a record in Salesforce.

delete

Deletes a record from Salesforce.
recentlyViewedItemRetrieves the recently viewed item in Salesforce.
retrieveFieldValuesRetrieves specific field values for a specific sObject.
upsertupserts a new Creates or updates (upsets) a record using external ID.

...

https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_get_field_values.htm

Anchor
upsert
upsert

...

Upsetting a record using an external ID

To create or update (upset) a record using an external ID, use salesforcerest.upsert and specify the following properties. This method is used to create records or update existing records (upsert) based on the value of a specified external ID field.

...

Following is a sample REST request that can be handled by the upsert operation.

Code Block
languagexml
titleSample Request for upsert operation
{
  "accessToken":"00D280000017q6q!AQoAQMMZWoN9MQZcXLW475YYoIdJFUICTjbGh67jEfAeV7Q57Ac2Ov.0ZuM_2Zx6SnrOmwpml8Qf.XclstTQiXtCYSGRBcEv",
  "apiUrl":"https://ap2.salesforce.com",
  "clientId": "3MVG9ZL0ppGP5UrBrnsanGUZRgHqc8gTV4t_6tfuef8Zz4LhFPipmlooU6GBszpplbTzVXXWjqkGHubhRip1s",
  "refreshToken": "5Aep861TSESvWeug_ztpnAk6BGQxRdovMLhHso81iyYKO6hTm68KfebpK7UYtEzF0ku8JCz7CNto8b3YMRmZrhy",
  "clientSecret": "9104967092887676680",
  "hostName": "https://login.salesforce.com",
  "apiVersion": "v32.0",
  "sobject":"Account",
  "registryPath": "connectors/Salesforcerest",
  "intervalTime" : "2400000",
  "externalIDField":"sample__c",
  "Id":"15222",
  "sObjectName": 
  {
      "Name":"hhhhhhhhhhhhhhaaaaaa"
  }
 } 

...