mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
✨ Add field AccountNumber to Salesforce Node (#2649)
This commit is contained in:
parent
c129252d2b
commit
ac545b2573
|
@ -145,6 +145,13 @@ export const accountFields: INodeProperties[] = [
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
options: [
|
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',
|
displayName: 'Account Source',
|
||||||
name: 'accountSource',
|
name: 'accountSource',
|
||||||
|
@ -410,6 +417,13 @@ export const accountFields: INodeProperties[] = [
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
options: [
|
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',
|
displayName: 'Account Source',
|
||||||
name: 'accountSource',
|
name: 'accountSource',
|
||||||
|
|
|
@ -16,6 +16,7 @@ export interface IAccount {
|
||||||
BillingState?: string;
|
BillingState?: string;
|
||||||
ShippingStreet?: string;
|
ShippingStreet?: string;
|
||||||
ShippingCity?: string;
|
ShippingCity?: string;
|
||||||
|
AccountNumber?: string;
|
||||||
AccountSource?: string;
|
AccountSource?: string;
|
||||||
AnnualRevenue?: number;
|
AnnualRevenue?: number;
|
||||||
BillingStreet?: string;
|
BillingStreet?: string;
|
||||||
|
|
|
@ -1956,6 +1956,9 @@ export class Salesforce implements INodeType {
|
||||||
if (additionalFields.shippingCity !== undefined) {
|
if (additionalFields.shippingCity !== undefined) {
|
||||||
body.ShippingCity = additionalFields.shippingCity as string;
|
body.ShippingCity = additionalFields.shippingCity as string;
|
||||||
}
|
}
|
||||||
|
if (additionalFields.accountNumber !== undefined) {
|
||||||
|
body.AccountNumber = additionalFields.accountNumber as string;
|
||||||
|
}
|
||||||
if (additionalFields.accountSource !== undefined) {
|
if (additionalFields.accountSource !== undefined) {
|
||||||
body.AccountSource = additionalFields.accountSource as string;
|
body.AccountSource = additionalFields.accountSource as string;
|
||||||
}
|
}
|
||||||
|
@ -2064,6 +2067,9 @@ export class Salesforce implements INodeType {
|
||||||
if (updateFields.shippingCity !== undefined) {
|
if (updateFields.shippingCity !== undefined) {
|
||||||
body.ShippingCity = updateFields.shippingCity as string;
|
body.ShippingCity = updateFields.shippingCity as string;
|
||||||
}
|
}
|
||||||
|
if (updateFields.accountNumber !== undefined) {
|
||||||
|
body.AccountNumber = updateFields.accountNumber as string;
|
||||||
|
}
|
||||||
if (updateFields.accountSource !== undefined) {
|
if (updateFields.accountSource !== undefined) {
|
||||||
body.AccountSource = updateFields.accountSource as string;
|
body.AccountSource = updateFields.accountSource as string;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue