2022-08-17 08:50:24 -07:00
|
|
|
|
import { INodeProperties } from 'n8n-workflow';
|
2021-07-02 14:34:12 -07:00
|
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
address,
|
|
|
|
|
currencies,
|
|
|
|
|
makeCustomFieldsFixedCollection,
|
|
|
|
|
makeGetAllFields,
|
|
|
|
|
} from './SharedFields';
|
|
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
|
export const leadOperations: INodeProperties[] = [
|
2021-07-02 14:34:12 -07:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Operation',
|
|
|
|
|
name: 'operation',
|
|
|
|
|
type: 'options',
|
2022-05-20 14:47:24 -07:00
|
|
|
|
noDataExpression: true,
|
2021-07-02 14:34:12 -07:00
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
|
resource: ['lead'],
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
name: 'Create',
|
|
|
|
|
value: 'create',
|
|
|
|
|
description: 'Create a lead',
|
2022-07-10 13:50:51 -07:00
|
|
|
|
action: 'Create a lead',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Create or Update',
|
|
|
|
|
value: 'upsert',
|
|
|
|
|
description: 'Create a new record, or update the current one if it already exists (upsert)',
|
2022-07-10 13:50:51 -07:00
|
|
|
|
action: 'Create or update a lead',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Delete',
|
|
|
|
|
value: 'delete',
|
|
|
|
|
description: 'Delete a lead',
|
2022-07-10 13:50:51 -07:00
|
|
|
|
action: 'Delete a lead',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Get',
|
|
|
|
|
value: 'get',
|
|
|
|
|
description: 'Get a lead',
|
2022-07-10 13:50:51 -07:00
|
|
|
|
action: 'Get a lead',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Get Fields',
|
|
|
|
|
value: 'getFields',
|
|
|
|
|
description: 'Get lead fields',
|
2022-07-10 13:50:51 -07:00
|
|
|
|
action: 'Get lead fields',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
2022-09-07 07:51:14 -07:00
|
|
|
|
{
|
|
|
|
|
name: 'Get Many',
|
|
|
|
|
value: 'getAll',
|
2022-09-13 03:36:36 -07:00
|
|
|
|
description: 'Get many leads',
|
2022-09-08 08:10:13 -07:00
|
|
|
|
action: 'Get many leads',
|
2022-09-07 07:51:14 -07:00
|
|
|
|
},
|
2021-07-02 14:34:12 -07:00
|
|
|
|
{
|
|
|
|
|
name: 'Update',
|
|
|
|
|
value: 'update',
|
|
|
|
|
description: 'Update a lead',
|
2022-07-10 13:50:51 -07:00
|
|
|
|
action: 'Update a lead',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
default: 'create',
|
|
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
|
];
|
2021-07-02 14:34:12 -07:00
|
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
|
export const leadFields: INodeProperties[] = [
|
2021-07-02 14:34:12 -07:00
|
|
|
|
// ----------------------------------------
|
|
|
|
|
// lead: create
|
|
|
|
|
// ----------------------------------------
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Company',
|
|
|
|
|
name: 'Company',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Company at which the lead works',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
type: 'string',
|
|
|
|
|
required: true,
|
|
|
|
|
default: '',
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
|
resource: ['lead'],
|
|
|
|
|
operation: ['create'],
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Last Name',
|
|
|
|
|
name: 'lastName',
|
|
|
|
|
type: 'string',
|
|
|
|
|
required: true,
|
|
|
|
|
default: '',
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
|
resource: ['lead'],
|
|
|
|
|
operation: ['create'],
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Additional Fields',
|
|
|
|
|
name: 'additionalFields',
|
|
|
|
|
type: 'collection',
|
|
|
|
|
placeholder: 'Add Field',
|
|
|
|
|
default: {},
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
|
resource: ['lead'],
|
|
|
|
|
operation: ['create'],
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
options: [
|
|
|
|
|
address,
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Annual Revenue',
|
|
|
|
|
name: 'Annual_Revenue',
|
|
|
|
|
type: 'number',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Annual revenue of the lead’s company',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Currency',
|
|
|
|
|
name: 'Currency',
|
|
|
|
|
type: 'options',
|
|
|
|
|
default: 'USD',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Symbol of the currency in which revenue is generated',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
options: currencies,
|
|
|
|
|
},
|
|
|
|
|
makeCustomFieldsFixedCollection('lead'),
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Description',
|
|
|
|
|
name: 'Description',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Designation',
|
|
|
|
|
name: 'Designation',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Position of the lead at their company',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Email',
|
|
|
|
|
name: 'Email',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Email Opt Out',
|
|
|
|
|
name: 'Email_Opt_Out',
|
|
|
|
|
type: 'boolean',
|
|
|
|
|
default: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Fax',
|
|
|
|
|
name: 'Fax',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'First Name',
|
|
|
|
|
name: 'First_Name',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Full Name',
|
|
|
|
|
name: 'Full_Name',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Industry',
|
|
|
|
|
name: 'Industry',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Industry to which the lead belongs',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Industry Type',
|
|
|
|
|
name: 'Industry_Type',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Type of industry to which the lead belongs',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Lead Source',
|
|
|
|
|
name: 'Lead_Source',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Source from which the lead was created',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Lead Status',
|
|
|
|
|
name: 'Lead_Status',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Mobile',
|
|
|
|
|
name: 'Mobile',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Number of Employees',
|
|
|
|
|
name: 'No_of_Employees',
|
|
|
|
|
type: 'number',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Number of employees in the lead’s company',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Phone',
|
|
|
|
|
name: 'Phone',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Salutation',
|
|
|
|
|
name: 'Salutation',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Secondary Email',
|
|
|
|
|
name: 'Secondary_Email',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Skype ID',
|
|
|
|
|
name: 'Skype_ID',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Twitter',
|
|
|
|
|
name: 'Twitter',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Website',
|
|
|
|
|
name: 'Website',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// ----------------------------------------
|
|
|
|
|
// lead: upsert
|
|
|
|
|
// ----------------------------------------
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Company',
|
|
|
|
|
name: 'Company',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Company at which the lead works',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
type: 'string',
|
|
|
|
|
required: true,
|
|
|
|
|
default: '',
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
|
resource: ['lead'],
|
|
|
|
|
operation: ['upsert'],
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Last Name',
|
|
|
|
|
name: 'lastName',
|
|
|
|
|
type: 'string',
|
|
|
|
|
required: true,
|
|
|
|
|
default: '',
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
|
resource: ['lead'],
|
|
|
|
|
operation: ['upsert'],
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Additional Fields',
|
|
|
|
|
name: 'additionalFields',
|
|
|
|
|
type: 'collection',
|
|
|
|
|
placeholder: 'Add Field',
|
|
|
|
|
default: {},
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
|
resource: ['lead'],
|
|
|
|
|
operation: ['upsert'],
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
options: [
|
|
|
|
|
address,
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Annual Revenue',
|
|
|
|
|
name: 'Annual_Revenue',
|
|
|
|
|
type: 'number',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Annual revenue of the lead’s company',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Currency',
|
|
|
|
|
name: 'Currency',
|
|
|
|
|
type: 'options',
|
|
|
|
|
default: 'USD',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Symbol of the currency in which revenue is generated',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
options: currencies,
|
|
|
|
|
},
|
|
|
|
|
makeCustomFieldsFixedCollection('lead'),
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Description',
|
|
|
|
|
name: 'Description',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Designation',
|
|
|
|
|
name: 'Designation',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Position of the lead at their company',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Email',
|
|
|
|
|
name: 'Email',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-08-17 08:50:24 -07:00
|
|
|
|
description:
|
|
|
|
|
'Email of the lead. If a record with this email exists it will be updated, otherwise a new one will be created.',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Email Opt Out',
|
|
|
|
|
name: 'Email_Opt_Out',
|
|
|
|
|
type: 'boolean',
|
|
|
|
|
default: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Fax',
|
|
|
|
|
name: 'Fax',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'First Name',
|
|
|
|
|
name: 'First_Name',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Full Name',
|
|
|
|
|
name: 'Full_Name',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Industry',
|
|
|
|
|
name: 'Industry',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Industry to which the lead belongs',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Industry Type',
|
|
|
|
|
name: 'Industry_Type',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Type of industry to which the lead belongs',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Lead Source',
|
|
|
|
|
name: 'Lead_Source',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Source from which the lead was created',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Lead Status',
|
|
|
|
|
name: 'Lead_Status',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Mobile',
|
|
|
|
|
name: 'Mobile',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Number of Employees',
|
|
|
|
|
name: 'No_of_Employees',
|
|
|
|
|
type: 'number',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Number of employees in the lead’s company',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Phone',
|
|
|
|
|
name: 'Phone',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Salutation',
|
|
|
|
|
name: 'Salutation',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Secondary Email',
|
|
|
|
|
name: 'Secondary_Email',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Skype ID',
|
|
|
|
|
name: 'Skype_ID',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Twitter',
|
|
|
|
|
name: 'Twitter',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Website',
|
|
|
|
|
name: 'Website',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// ----------------------------------------
|
|
|
|
|
// lead: delete
|
|
|
|
|
// ----------------------------------------
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Lead ID',
|
|
|
|
|
name: 'leadId',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'ID of the lead to delete',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
type: 'string',
|
|
|
|
|
required: true,
|
|
|
|
|
default: '',
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
|
resource: ['lead'],
|
|
|
|
|
operation: ['delete'],
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// ----------------------------------------
|
|
|
|
|
// lead: get
|
|
|
|
|
// ----------------------------------------
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Lead ID',
|
|
|
|
|
name: 'leadId',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'ID of the lead to retrieve',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
type: 'string',
|
|
|
|
|
required: true,
|
|
|
|
|
default: '',
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
|
resource: ['lead'],
|
|
|
|
|
operation: ['get'],
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// ----------------------------------------
|
|
|
|
|
// lead: getAll
|
|
|
|
|
// ----------------------------------------
|
|
|
|
|
...makeGetAllFields('lead'),
|
|
|
|
|
|
|
|
|
|
// ----------------------------------------
|
|
|
|
|
// lead: update
|
|
|
|
|
// ----------------------------------------
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Lead ID',
|
|
|
|
|
name: 'leadId',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'ID of the lead to update',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
type: 'string',
|
|
|
|
|
required: true,
|
|
|
|
|
default: '',
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
|
resource: ['lead'],
|
|
|
|
|
operation: ['update'],
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Update Fields',
|
|
|
|
|
name: 'updateFields',
|
|
|
|
|
type: 'collection',
|
|
|
|
|
placeholder: 'Add Field',
|
|
|
|
|
default: {},
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
|
resource: ['lead'],
|
|
|
|
|
operation: ['update'],
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
options: [
|
|
|
|
|
address,
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Annual Revenue',
|
|
|
|
|
name: 'Annual_Revenue',
|
|
|
|
|
type: 'number',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Annual revenue of the lead’s company',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Company',
|
|
|
|
|
name: 'Company',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Company at which the lead works',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Currency',
|
|
|
|
|
name: 'Currency',
|
|
|
|
|
type: 'options',
|
|
|
|
|
default: 'USD',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Symbol of the currency in which revenue is generated',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
options: currencies,
|
|
|
|
|
},
|
|
|
|
|
makeCustomFieldsFixedCollection('lead'),
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Description',
|
|
|
|
|
name: 'Description',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Designation',
|
|
|
|
|
name: 'Designation',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Position of the lead at their company',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Email',
|
|
|
|
|
name: 'Email',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Email Opt Out',
|
|
|
|
|
name: 'Email_Opt_Out',
|
|
|
|
|
type: 'boolean',
|
|
|
|
|
default: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Fax',
|
|
|
|
|
name: 'Fax',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'First Name',
|
|
|
|
|
name: 'First_Name',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Full Name',
|
|
|
|
|
name: 'Full_Name',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Industry',
|
|
|
|
|
name: 'Industry',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Industry to which the lead belongs',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Industry Type',
|
|
|
|
|
name: 'Industry_Type',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Type of industry to which the lead belongs',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Last Name',
|
|
|
|
|
name: 'Last_Name',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Lead Source',
|
|
|
|
|
name: 'Lead_Source',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Source from which the lead was created',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Lead Status',
|
|
|
|
|
name: 'Lead_Status',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Mobile',
|
|
|
|
|
name: 'Mobile',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Number of Employees',
|
|
|
|
|
name: 'No_of_Employees',
|
|
|
|
|
type: 'number',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'Number of employees in the lead’s company',
|
2021-07-02 14:34:12 -07:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Phone',
|
|
|
|
|
name: 'Phone',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Salutation',
|
|
|
|
|
name: 'Salutation',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Secondary Email',
|
|
|
|
|
name: 'Secondary_Email',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Skype ID',
|
|
|
|
|
name: 'Skype_ID',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Twitter',
|
|
|
|
|
name: 'Twitter',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Website',
|
|
|
|
|
name: 'Website',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
|
];
|