From ac545b2573c15de75728179dc47771a254be250d Mon Sep 17 00:00:00 2001 From: Laurens <68639333+laurens-novyx@users.noreply.github.com> Date: Sat, 8 Jan 2022 12:53:57 +0100 Subject: [PATCH] :sparkles: Add field AccountNumber to Salesforce Node (#2649) --- .../nodes/Salesforce/AccountDescription.ts | 14 ++++++++++++++ .../nodes/Salesforce/AccountInterface.ts | 1 + .../nodes-base/nodes/Salesforce/Salesforce.node.ts | 6 ++++++ 3 files changed, 21 insertions(+) diff --git a/packages/nodes-base/nodes/Salesforce/AccountDescription.ts b/packages/nodes-base/nodes/Salesforce/AccountDescription.ts index 4053d454c5..75f796bbef 100644 --- a/packages/nodes-base/nodes/Salesforce/AccountDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/AccountDescription.ts @@ -145,6 +145,13 @@ export const accountFields: INodeProperties[] = [ }, }, options: [ + { + displayName: 'Account Number', + name: 'accountNumber', + type: 'string', + default: '', + description: 'Account number assigned to this account (not the unique ID). Maximum size is 40 characters.', + }, { displayName: 'Account Source', name: 'accountSource', @@ -410,6 +417,13 @@ export const accountFields: INodeProperties[] = [ }, }, options: [ + { + displayName: 'Account Number', + name: 'accountNumber', + type: 'string', + default: '', + description: 'Account number assigned to this account (not the unique ID). Maximum size is 40 characters.', + }, { displayName: 'Account Source', name: 'accountSource', diff --git a/packages/nodes-base/nodes/Salesforce/AccountInterface.ts b/packages/nodes-base/nodes/Salesforce/AccountInterface.ts index eb5bde59fc..a1c6d037ef 100644 --- a/packages/nodes-base/nodes/Salesforce/AccountInterface.ts +++ b/packages/nodes-base/nodes/Salesforce/AccountInterface.ts @@ -16,6 +16,7 @@ export interface IAccount { BillingState?: string; ShippingStreet?: string; ShippingCity?: string; + AccountNumber?: string; AccountSource?: string; AnnualRevenue?: number; BillingStreet?: string; diff --git a/packages/nodes-base/nodes/Salesforce/Salesforce.node.ts b/packages/nodes-base/nodes/Salesforce/Salesforce.node.ts index 3d18a6282c..5d839a1fe8 100644 --- a/packages/nodes-base/nodes/Salesforce/Salesforce.node.ts +++ b/packages/nodes-base/nodes/Salesforce/Salesforce.node.ts @@ -1956,6 +1956,9 @@ export class Salesforce implements INodeType { if (additionalFields.shippingCity !== undefined) { body.ShippingCity = additionalFields.shippingCity as string; } + if (additionalFields.accountNumber !== undefined) { + body.AccountNumber = additionalFields.accountNumber as string; + } if (additionalFields.accountSource !== undefined) { body.AccountSource = additionalFields.accountSource as string; } @@ -2064,6 +2067,9 @@ export class Salesforce implements INodeType { if (updateFields.shippingCity !== undefined) { body.ShippingCity = updateFields.shippingCity as string; } + if (updateFields.accountNumber !== undefined) { + body.AccountNumber = updateFields.accountNumber as string; + } if (updateFields.accountSource !== undefined) { body.AccountSource = updateFields.accountSource as string; }