Small improvements to Zoho CRM Node

This commit is contained in:
Jan Oberhauser
2020-03-31 18:54:44 +02:00
parent 977cfbffbe
commit d207396edf
2 changed files with 36 additions and 25 deletions

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from "n8n-workflow";
import { INodeProperties } from 'n8n-workflow';
export const leadOperations = [
{
@@ -18,6 +18,11 @@ export const leadOperations = [
value: 'create',
description: 'Create a new lead',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a lead',
},
{
name: 'Get',
value: 'get',
@@ -38,11 +43,6 @@ export const leadOperations = [
value: 'update',
description: 'Update a lead',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a lead',
}
],
default: 'create',
description: 'The operation to perform.',
@@ -648,6 +648,15 @@ export const leadFields = [
default: false,
description: 'To include records from the child territories. True includes child territory records',
},
{
displayName: 'Sort By',
name: 'sortBy',
type: 'multiOptions',
typeOptions: {
loadOptionsMethod: 'getLeadFields',
},
default: [],
},
{
displayName: 'Sort Order',
name: 'sortOrder',
@@ -665,15 +674,6 @@ export const leadFields = [
default: 'desc',
description: 'Order sort attribute ascending or descending.',
},
{
displayName: 'Sort By',
name: 'sortBy',
type: 'multiOptions',
typeOptions: {
loadOptionsMethod: 'getLeadFields',
},
default: [],
},
{
displayName: 'Territory ID',
name: 'territoryId',