...
Operation | Description |
---|---|
create | Creates a record in Salesforce. |
createMultipleRecords | Creates multiple sObject(s) in Salesforce. |
createNestedRecords | Create nested records for sObjects. |
update | Updates a record in Salesforce. |
Deletes a record from Salesforce. | |
recentlyViewedItem | Retrieves the recently viewed item in Salesforce. |
retrieveFieldValues | Retrieves specific field values for a specific sObject. |
upsert | upserts 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 | ||||
---|---|---|---|---|
|
...
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 | ||||
---|---|---|---|---|
| ||||
{ "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" } } |
...