Add salesforce custom objects and custom fields (#1061)

This commit is contained in:
Ricardo Espinoza
2020-10-16 04:27:09 -04:00
committed by GitHub
parent b40dec3e4a
commit 86d5681517
8 changed files with 1011 additions and 11 deletions

View File

@@ -1,4 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
import {
INodeProperties,
} from 'n8n-workflow';
export const contactOperations = [
{
@@ -62,7 +64,7 @@ export const contactOperations = [
export const contactFields = [
/* -------------------------------------------------------------------------- */
/* contact:create */
/* contact:create */
/* -------------------------------------------------------------------------- */
{
displayName: 'Last Name',
@@ -130,6 +132,42 @@ export const contactFields = [
default: '',
description: 'The birth date of the contact.',
},
{
displayName: 'Custom Fields',
name: 'customFieldsUi',
placeholder: 'Add Custom Field',
type: 'fixedCollection',
typeOptions: {
multipleValues: true,
},
description: 'Filter by custom fields ',
default: {},
options: [
{
name: 'customFieldsValues',
displayName: 'Custom Field',
values: [
{
displayName: 'Field ID',
name: 'fieldId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getLeadCustomFields',
},
default: '',
description: 'The ID of the field to add custom field to.',
},
{
displayName: 'Value',
name: 'value',
type: 'string',
default: '',
description: 'The value to set on custom field.',
},
],
},
],
},
{
displayName: 'Department',
name: 'department',
@@ -314,7 +352,7 @@ export const contactFields = [
],
},
/* -------------------------------------------------------------------------- */
/* contact:update */
/* contact:update */
/* -------------------------------------------------------------------------- */
{
displayName: 'Contact ID',
@@ -382,6 +420,42 @@ export const contactFields = [
default: '',
description: 'The birth date of the contact.',
},
{
displayName: 'Custom Fields',
name: 'customFieldsUi',
placeholder: 'Add Custom Field',
type: 'fixedCollection',
typeOptions: {
multipleValues: true,
},
description: 'Filter by custom fields ',
default: {},
options: [
{
name: 'customFieldsValues',
displayName: 'Custom Field',
values: [
{
displayName: 'Field ID',
name: 'fieldId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getLeadCustomFields',
},
default: '',
description: 'The ID of the field to add custom field to.',
},
{
displayName: 'Value',
name: 'value',
type: 'string',
default: '',
description: 'The value to set on custom field.',
},
],
},
],
},
{
displayName: 'Department',
name: 'department',