Skip to content

Commit

Permalink
feat(Pipedrive Node): Add sort field for get all persons (#8138)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-alba17 committed Jun 20, 2024
1 parent 9c4e671 commit 4e89343
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).',
},
],
},

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

0 comments on commit 4e89343

Please sign in to comment.