feat(Pipedrive Node): Add sort field for get all persons (#8138)

This commit is contained in:
Daniel 2024-06-20 13:18:11 -05:00 committed by GitHub
parent 9c4e67111c
commit 4e893436fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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') {
// ----------------------------------