Add field "mobile phone" to lead resource (Salesforce) (#1522)

This commit is contained in:
Ricardo Espinoza 2021-03-10 12:36:26 -05:00 committed by GitHub
parent d6d57c2df6
commit 15ec1f1f4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 1 deletions

View file

@ -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: `Contacts 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: `Contacts mobile phone number.`,
},
{
displayName: 'Number Of Employees',
name: 'numberOfEmployees',

View file

@ -22,4 +22,5 @@ export interface ILead {
AnnualRevenue?: number;
IsUnreadByOwner?: boolean;
NumberOfEmployees?: number;
MobilePhone?: string;
}

View file

@ -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) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 6.2 KiB