Skip to content

Commit

Permalink
✨ Add field AccountNumber to Salesforce Node (#2649)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurens-novyx authored Jan 8, 2022
1 parent c129252 commit ac545b2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/nodes-base/nodes/Salesforce/AccountDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions packages/nodes-base/nodes/Salesforce/AccountInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export interface IAccount {
BillingState?: string;
ShippingStreet?: string;
ShippingCity?: string;
AccountNumber?: string;
AccountSource?: string;
AnnualRevenue?: number;
BillingStreet?: string;
Expand Down
6 changes: 6 additions & 0 deletions packages/nodes-base/nodes/Salesforce/Salesforce.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit ac545b2

Please sign in to comment.