mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-23 11:44:06 -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: '',
|
||||
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',
|
||||
|
|
|
@ -22,4 +22,5 @@ export interface ILead {
|
|||
AnnualRevenue?: number;
|
||||
IsUnreadByOwner?: boolean;
|
||||
NumberOfEmployees?: number;
|
||||
MobilePhone?: string;
|
||||
}
|
||||
|
|
|
@ -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 |
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