From 34e891c0f8c987c9be9cff463422b9972f02269f Mon Sep 17 00:00:00 2001 From: Albrecht Schmidt Date: Mon, 13 Jun 2022 21:39:20 +0200 Subject: [PATCH] fix(Pipedrive Node): Fix limit issue with Lead -> GetAll (#3436) --- packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts b/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts index 9c02f0ebc8..1b4150c34a 100644 --- a/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts +++ b/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts @@ -4813,6 +4813,11 @@ export class Pipedrive implements INodeType { // https://developers.pipedrive.com/docs/api/v1/Leads#getLeads + returnAll = this.getNodeParameter('returnAll', i) as boolean; + if (returnAll === false) { + qs.limit = this.getNodeParameter('limit', i) as number; + } + const filters = this.getNodeParameter('filters', i) as IDataObject; if (Object.keys(filters).length) {