mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
⚡ Add field "mobile phone" to lead resource (Salesforce) (#1522)
This commit is contained in:
parent
d6d57c2df6
commit
15ec1f1f4d
|
@ -229,6 +229,13 @@ export const leadFields = [
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Source from which the lead was obtained.',
|
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',
|
displayName: 'Number Of Employees',
|
||||||
name: 'numberOfEmployees',
|
name: 'numberOfEmployees',
|
||||||
|
@ -480,6 +487,13 @@ export const leadFields = [
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Source from which the lead was obtained.',
|
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',
|
displayName: 'Number Of Employees',
|
||||||
name: 'numberOfEmployees',
|
name: 'numberOfEmployees',
|
||||||
|
|
|
@ -22,4 +22,5 @@ export interface ILead {
|
||||||
AnnualRevenue?: number;
|
AnnualRevenue?: number;
|
||||||
IsUnreadByOwner?: boolean;
|
IsUnreadByOwner?: boolean;
|
||||||
NumberOfEmployees?: number;
|
NumberOfEmployees?: number;
|
||||||
|
MobilePhone?: string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,7 +114,7 @@ export class Salesforce implements INodeType {
|
||||||
description: INodeTypeDescription = {
|
description: INodeTypeDescription = {
|
||||||
displayName: 'Salesforce',
|
displayName: 'Salesforce',
|
||||||
name: 'salesforce',
|
name: 'salesforce',
|
||||||
icon: 'file:salesforce.png',
|
icon: 'file:salesforce.svg',
|
||||||
group: ['output'],
|
group: ['output'],
|
||||||
version: 1,
|
version: 1,
|
||||||
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||||||
|
@ -930,6 +930,9 @@ export class Salesforce implements INodeType {
|
||||||
if (additionalFields.numberOfEmployees !== undefined) {
|
if (additionalFields.numberOfEmployees !== undefined) {
|
||||||
body.NumberOfEmployees = additionalFields.numberOfEmployees as number;
|
body.NumberOfEmployees = additionalFields.numberOfEmployees as number;
|
||||||
}
|
}
|
||||||
|
if (additionalFields.mobilePhone !== undefined) {
|
||||||
|
body.MobilePhone = additionalFields.mobilePhone as string;
|
||||||
|
}
|
||||||
if (additionalFields.customFieldsUi) {
|
if (additionalFields.customFieldsUi) {
|
||||||
const customFields = (additionalFields.customFieldsUi as IDataObject).customFieldsValues as IDataObject[];
|
const customFields = (additionalFields.customFieldsUi as IDataObject).customFieldsValues as IDataObject[];
|
||||||
if (customFields) {
|
if (customFields) {
|
||||||
|
@ -1019,6 +1022,9 @@ export class Salesforce implements INodeType {
|
||||||
if (updateFields.numberOfEmployees !== undefined) {
|
if (updateFields.numberOfEmployees !== undefined) {
|
||||||
body.NumberOfEmployees = updateFields.numberOfEmployees as number;
|
body.NumberOfEmployees = updateFields.numberOfEmployees as number;
|
||||||
}
|
}
|
||||||
|
if (updateFields.mobilePhone !== undefined) {
|
||||||
|
body.MobilePhone = updateFields.mobilePhone as string;
|
||||||
|
}
|
||||||
if (updateFields.customFieldsUi) {
|
if (updateFields.customFieldsUi) {
|
||||||
const customFields = (updateFields.customFieldsUi as IDataObject).customFieldsValues as IDataObject[];
|
const customFields = (updateFields.customFieldsUi as IDataObject).customFieldsValues as IDataObject[];
|
||||||
if (customFields) {
|
if (customFields) {
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 2 KiB |
1
packages/nodes-base/nodes/Salesforce/salesforce.svg
Normal file
1
packages/nodes-base/nodes/Salesforce/salesforce.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 6.2 KiB |
Loading…
Reference in a new issue