mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Add filters to all getAll operations to Salesforce Node (#1292)
* ⚡ Add filters to all get:All operations * ⚡ Small fix * ⚡Add description to condition fields * ⚡ Minor improvements to Salesforce-Node Co-authored-by: Harshil <ghagrawal17@gmail.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
@@ -48,9 +48,9 @@ export const customObjectOperations = [
|
||||
|
||||
export const customObjectFields = [
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* customObject:create */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* customObject:create */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Custom Object',
|
||||
name: 'customObject',
|
||||
@@ -70,7 +70,7 @@ export const customObjectFields = [
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Name of the custom object',
|
||||
description: 'Name of the custom object.',
|
||||
},
|
||||
{
|
||||
displayName: 'Fields',
|
||||
@@ -90,7 +90,7 @@ export const customObjectFields = [
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Filter by custom fields ',
|
||||
description: 'Filter by custom fields.',
|
||||
default: {},
|
||||
options: [
|
||||
{
|
||||
@@ -121,9 +121,10 @@ export const customObjectFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* customObject:update */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* customObject:update */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Custom Object',
|
||||
name: 'customObject',
|
||||
@@ -161,7 +162,7 @@ export const customObjectFields = [
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Record id to be updated',
|
||||
description: 'Record ID to be updated.',
|
||||
},
|
||||
{
|
||||
displayName: 'Fields',
|
||||
@@ -212,9 +213,10 @@ export const customObjectFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* customObject:get */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* customObject:get */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Custom Object',
|
||||
name: 'customObject',
|
||||
@@ -252,11 +254,12 @@ export const customObjectFields = [
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Record id to be retrieved',
|
||||
description: 'Record ID to be retrieved.',
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* customObject:delete */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* customObject:delete */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Custom Object',
|
||||
name: 'customObject',
|
||||
@@ -276,7 +279,7 @@ export const customObjectFields = [
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Name of the custom object',
|
||||
description: 'Name of the custom object.',
|
||||
},
|
||||
{
|
||||
displayName: 'Record ID',
|
||||
@@ -294,11 +297,12 @@ export const customObjectFields = [
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Record id to be deleted',
|
||||
description: 'Record ID to be deleted.',
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* customObject:getAll */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* customObject:getAll */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Custom Object',
|
||||
name: 'customObject',
|
||||
@@ -378,6 +382,72 @@ export const customObjectFields = [
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Conditions',
|
||||
name: 'conditionsUi',
|
||||
placeholder: 'Add Condition',
|
||||
type: 'fixedCollection',
|
||||
typeOptions: {
|
||||
multipleValues: true,
|
||||
},
|
||||
description: 'The condition to set.',
|
||||
default: {},
|
||||
options: [
|
||||
{
|
||||
name: 'conditionValues',
|
||||
displayName: 'Condition',
|
||||
values: [
|
||||
{
|
||||
displayName: 'Field',
|
||||
name: 'field',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getCustomObjectFields',
|
||||
loadOptionsDependsOn: [
|
||||
'customObject',
|
||||
],
|
||||
},
|
||||
default: '',
|
||||
description: 'For date, number, or boolean, please use expressions.',
|
||||
},
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: '=',
|
||||
value: 'equal',
|
||||
},
|
||||
{
|
||||
name: '>',
|
||||
value: '>',
|
||||
},
|
||||
{
|
||||
name: '<',
|
||||
value: '<',
|
||||
},
|
||||
{
|
||||
name: '>=',
|
||||
value: '>=',
|
||||
},
|
||||
{
|
||||
name: '<=',
|
||||
value: '<=',
|
||||
},
|
||||
],
|
||||
default: 'equal',
|
||||
},
|
||||
{
|
||||
displayName: 'Value',
|
||||
name: 'value',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
displayName: 'Fields',
|
||||
name: 'fields',
|
||||
|
||||
Reference in New Issue
Block a user