Add additional parameters to Pipedrive getAll for Notes (#1027)

* Add additional parameters to Pipedrive notes getAll

* use existing addAdditionalFields for merging additional fields into the query string
This commit is contained in:
Robarelli
2020-10-13 15:07:21 -06:00
committed by GitHub
parent 97d1f46a14
commit 75e4086f6b

View File

@@ -1420,6 +1420,7 @@ export class Pipedrive implements INodeType {
show: {
operation: [
'create',
'getAll'
],
resource: [
'note',
@@ -2516,13 +2517,14 @@ export class Pipedrive implements INodeType {
// ----------------------------------
requestMethod = 'GET';
endpoint = `/notes`;
returnAll = this.getNodeParameter('returnAll', i) as boolean;
if (returnAll === false) {
qs.limit = this.getNodeParameter('limit', i) as number;
}
endpoint = `/notes`;
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
addAdditionalFields(qs, additionalFields);
} else if (operation === 'update') {
// ----------------------------------