diff --git a/packages/nodes-base/nodes/Salesforce/LeadDescription.ts b/packages/nodes-base/nodes/Salesforce/LeadDescription.ts index 802b20c3bd..402c39792a 100644 --- a/packages/nodes-base/nodes/Salesforce/LeadDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/LeadDescription.ts @@ -229,6 +229,13 @@ export const leadFields = [ default: '', description: 'Source from which the lead was obtained.', }, + { + displayName: 'Mobile Phone', + name: 'mobilePhone', + type: 'string', + default: '', + description: `Contact’s mobile phone number.`, + }, { displayName: 'Number Of Employees', name: 'numberOfEmployees', @@ -480,6 +487,13 @@ export const leadFields = [ default: '', description: 'Source from which the lead was obtained.', }, + { + displayName: 'Mobile Phone', + name: 'mobilePhone', + type: 'string', + default: '', + description: `Contact’s mobile phone number.`, + }, { displayName: 'Number Of Employees', name: 'numberOfEmployees', diff --git a/packages/nodes-base/nodes/Salesforce/LeadInterface.ts b/packages/nodes-base/nodes/Salesforce/LeadInterface.ts index 227e5fe255..02196961ed 100644 --- a/packages/nodes-base/nodes/Salesforce/LeadInterface.ts +++ b/packages/nodes-base/nodes/Salesforce/LeadInterface.ts @@ -22,4 +22,5 @@ export interface ILead { AnnualRevenue?: number; IsUnreadByOwner?: boolean; NumberOfEmployees?: number; + MobilePhone?: string; } diff --git a/packages/nodes-base/nodes/Salesforce/Salesforce.node.ts b/packages/nodes-base/nodes/Salesforce/Salesforce.node.ts index 3afec9ae58..f043c0fc94 100644 --- a/packages/nodes-base/nodes/Salesforce/Salesforce.node.ts +++ b/packages/nodes-base/nodes/Salesforce/Salesforce.node.ts @@ -114,7 +114,7 @@ export class Salesforce implements INodeType { description: INodeTypeDescription = { displayName: 'Salesforce', name: 'salesforce', - icon: 'file:salesforce.png', + icon: 'file:salesforce.svg', group: ['output'], version: 1, subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}', @@ -930,6 +930,9 @@ export class Salesforce implements INodeType { if (additionalFields.numberOfEmployees !== undefined) { body.NumberOfEmployees = additionalFields.numberOfEmployees as number; } + if (additionalFields.mobilePhone !== undefined) { + body.MobilePhone = additionalFields.mobilePhone as string; + } if (additionalFields.customFieldsUi) { const customFields = (additionalFields.customFieldsUi as IDataObject).customFieldsValues as IDataObject[]; if (customFields) { @@ -1019,6 +1022,9 @@ export class Salesforce implements INodeType { if (updateFields.numberOfEmployees !== undefined) { body.NumberOfEmployees = updateFields.numberOfEmployees as number; } + if (updateFields.mobilePhone !== undefined) { + body.MobilePhone = updateFields.mobilePhone as string; + } if (updateFields.customFieldsUi) { const customFields = (updateFields.customFieldsUi as IDataObject).customFieldsValues as IDataObject[]; if (customFields) { diff --git a/packages/nodes-base/nodes/Salesforce/salesforce.png b/packages/nodes-base/nodes/Salesforce/salesforce.png deleted file mode 100644 index aca78c51ab..0000000000 Binary files a/packages/nodes-base/nodes/Salesforce/salesforce.png and /dev/null differ diff --git a/packages/nodes-base/nodes/Salesforce/salesforce.svg b/packages/nodes-base/nodes/Salesforce/salesforce.svg new file mode 100644 index 0000000000..1de81b28ff --- /dev/null +++ b/packages/nodes-base/nodes/Salesforce/salesforce.svg @@ -0,0 +1 @@ + \ No newline at end of file