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:
@@ -51,9 +51,9 @@ export const attachmentOperations = [
|
||||
|
||||
export const attachmentFields = [
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* attachment:create */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* attachment:create */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Parent ID',
|
||||
name: 'parentId',
|
||||
@@ -152,9 +152,10 @@ export const attachmentFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* attachment:update */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* attachment:update */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Attachment ID',
|
||||
name: 'attachmentId',
|
||||
@@ -171,7 +172,7 @@ export const attachmentFields = [
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Id of attachment that needs to be fetched',
|
||||
description: 'ID of attachment that needs to be fetched.',
|
||||
},
|
||||
{
|
||||
displayName: 'Update Fields',
|
||||
@@ -224,7 +225,7 @@ export const attachmentFields = [
|
||||
name: 'owner',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getUsers',
|
||||
loadOptionsMethod: 'getUsers',
|
||||
},
|
||||
default: '',
|
||||
description: 'ID of the User who owns the attachment.',
|
||||
@@ -232,9 +233,9 @@ export const attachmentFields = [
|
||||
],
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* attachment:get */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* attachment:get */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Attachment ID',
|
||||
name: 'attachmentId',
|
||||
@@ -251,11 +252,12 @@ export const attachmentFields = [
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Id of attachment that needs to be fetched',
|
||||
description: 'ID of attachment that needs to be fetched.',
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* attachment:delete */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* attachment:delete */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Attachment ID',
|
||||
name: 'attachmentId',
|
||||
@@ -272,11 +274,12 @@ export const attachmentFields = [
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Id of attachment that needs to be fetched',
|
||||
description: 'ID of attachment that needs to be fetched.',
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* attachment:getAll */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* attachment:getAll */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Return All',
|
||||
name: 'returnAll',
|
||||
@@ -335,6 +338,69 @@ export const attachmentFields = [
|
||||
},
|
||||
},
|
||||
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: 'getAtachmentFields',
|
||||
},
|
||||
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