From d9bb89cf72a8ccffd61be97dc561b7b015e1d43f Mon Sep 17 00:00:00 2001 From: Emmanuel Evance Date: Tue, 10 Dec 2024 15:13:14 +0300 Subject: [PATCH] update upsert docs --- packages/salesforce/ast.json | 2 +- packages/salesforce/src/Adaptor.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/salesforce/ast.json b/packages/salesforce/ast.json index bcccfadac..e00212347 100644 --- a/packages/salesforce/ast.json +++ b/packages/salesforce/ast.json @@ -742,7 +742,7 @@ "records" ], "docs": { - "description": "Create a new sObject record, or updates it if it already exists\nExternal ID field name must be specified in second argument.", + "description": "Create a new sObject record, or updates it if it already exists.\nThis function uses {@link https://jsforce.github.io/document/#upsert|jsforce upsert} under the hood.", "tags": [ { "title": "public", diff --git a/packages/salesforce/src/Adaptor.js b/packages/salesforce/src/Adaptor.js index 6bad34aa0..5daab3309 100644 --- a/packages/salesforce/src/Adaptor.js +++ b/packages/salesforce/src/Adaptor.js @@ -645,8 +645,8 @@ export function query(query, options = {}) { } /** - * Create a new sObject record, or updates it if it already exists - * External ID field name must be specified in second argument. + * Create a new sObject record, or updates it if it already exists. + * This function uses {@link https://jsforce.github.io/document/#upsert|jsforce upsert} under the hood. * @public * @example Single record upsert * upsert("UpsertTable__c", "ExtId__c", { Name: "Record #1", ExtId__c : 'ID-0000001' });