mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
feat(Pipedrive Node): Add sort field for get all persons (#8138)
This commit is contained in:
parent
9c4e67111c
commit
4e893436fb
|
@ -3515,6 +3515,14 @@ export class Pipedrive implements INodeType {
|
||||||
description:
|
description:
|
||||||
'If supplied, only persons whose name starts with the specified letter will be returned',
|
'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;
|
qs.first_char = additionalFields.firstChar as string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (additionalFields.sort) {
|
||||||
|
qs.sort = additionalFields.sort as string;
|
||||||
|
}
|
||||||
|
|
||||||
endpoint = '/persons';
|
endpoint = '/persons';
|
||||||
} else if (operation === 'search') {
|
} else if (operation === 'search') {
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
|
|
Loading…
Reference in a new issue