From 15ec1f1f4d27ef410106280b6200d370203ee045 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Wed, 10 Mar 2021 12:36:26 -0500 Subject: [PATCH] :zap: Add field "mobile phone" to lead resource (Salesforce) (#1522) --- .../nodes/Salesforce/LeadDescription.ts | 14 ++++++++++++++ .../nodes-base/nodes/Salesforce/LeadInterface.ts | 1 + .../nodes/Salesforce/Salesforce.node.ts | 8 +++++++- .../nodes-base/nodes/Salesforce/salesforce.png | Bin 2038 -> 0 bytes .../nodes-base/nodes/Salesforce/salesforce.svg | 1 + 5 files changed, 23 insertions(+), 1 deletion(-) delete mode 100644 packages/nodes-base/nodes/Salesforce/salesforce.png create mode 100644 packages/nodes-base/nodes/Salesforce/salesforce.svg 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 aca78c51abfd5df3eab04ca5d743fec960557242..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2038 zcmVLb;sK)J0-@pnqvHai;sK%I0iodnqT&Lf z-~poI0-@moq2U6d;Q^uG0HWdoq2U0b;{l=J0iodnqT&Ie;sK%I0iodmq2U6d-~giI z0HELjq2U6d-~yuK0iogmqTvCf;{u@H0G{3jq2BO;BbAFJZ+`26Sg{IuisQNHQa?)iey@44mnpWE`A+473h@N&xSYsl-c8H>tMs{0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Zg2q)rjO4_KQbDeKYZQz*{LeJ=mF!nb8MCk3=zk|d-{@mgA^Ee{c-+BbMaHBw(c z2Gp3{PcI9q=Y=bHd5tmd?_hGaTi`FIz5p89!FtE?@C6B4$YakYgP2LXBu@1;CjPL- zb&WYbflN!IMwgJh*0l?8H=#5m@#E?(H z^rK=9GA09aZ)Z9&I5yHh6&ef;1xCGgzUYD+3ifp4raNl;*`;e-l07*qoM6N<$f=j0eRsaA1 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