Skip to content

Commit 4561487

Browse files
committed
Adjustments
1 parent 68ddc67 commit 4561487

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

components/salesforce_rest_api/actions/upsert-record/upsert-record.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
key: "salesforce_rest_api-upsert-record",
99
name: "Upsert Record",
1010
description: "Create or update a record of a given object. [See the documentation](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_upsert.htm)",
11-
version: "0.0.1",
11+
version: "0.0.{{ts}}",
1212
type: "action",
1313
props: {
1414
salesforce,
@@ -52,7 +52,7 @@ export default {
5252
description: "The field to use as the external ID to identify the record.",
5353
options: externalIdFieldOptions,
5454
},
55-
externalIdFieldValue: {
55+
externalIdValue: {
5656
type: "string",
5757
label: "External ID Value",
5858
description: "The value of the external ID field selected above. If a record with this value exists, it will be updated, otherwise a new one will be created.",

components/salesforce_rest_api/salesforce_rest_api.app.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,14 +293,13 @@ export default {
293293
});
294294
},
295295
async upsertRecord(sobjectName, {
296-
$, data, externalIdFieldName, externalIdValue
296+
externalIdFieldName, externalIdValue, ...args
297297
}) {
298298
const url = `${this._sObjectTypeApiUrl(sobjectName)}/${externalIdFieldName}/${externalIdValue}`;
299299
return this._makeRequest({
300-
$,
301300
url,
302301
method: "PATCH",
303-
data,
302+
...args,
304303
});
305304
},
306305
async query({

0 commit comments

Comments
 (0)