mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat(Pipedrive Node): Add sort field for get all persons (#8138)
This commit is contained in:
@@ -3515,6 +3515,14 @@ export class Pipedrive implements INodeType {
|
||||
description:
|
||||
'If supplied, only persons whose name starts with the specified letter will be returned',
|
||||
},
|
||||
{
|
||||
displayName: 'Sort',
|
||||
name: 'sort',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description:
|
||||
'The field names and sorting mode separated by a comma (field_name_1 ASC, field_name_2 DESC). Only first-level field keys are supported (no nested keys).',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -4801,6 +4809,10 @@ export class Pipedrive implements INodeType {
|
||||
qs.first_char = additionalFields.firstChar as string;
|
||||
}
|
||||
|
||||
if (additionalFields.sort) {
|
||||
qs.sort = additionalFields.sort as string;
|
||||
}
|
||||
|
||||
endpoint = '/persons';
|
||||
} else if (operation === 'search') {
|
||||
// ----------------------------------
|
||||
|
||||
Reference in New Issue
Block a user