From 1067ec0f5bd8e57650ccd9924e01fc52fbf0c43c Mon Sep 17 00:00:00 2001 From: Jonathan Bennetts Date: Mon, 3 Oct 2022 10:47:31 +0100 Subject: [PATCH] fix(Microsoft Excel Node): fix issue with pagination when getting all items (#4247) --- packages/nodes-base/nodes/Microsoft/Excel/GenericFunctions.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/nodes-base/nodes/Microsoft/Excel/GenericFunctions.ts b/packages/nodes-base/nodes/Microsoft/Excel/GenericFunctions.ts index c8558f5240..cb71779117 100644 --- a/packages/nodes-base/nodes/Microsoft/Excel/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Microsoft/Excel/GenericFunctions.ts @@ -53,6 +53,9 @@ export async function microsoftApiRequestAllItems( do { responseData = await microsoftApiRequest.call(this, method, endpoint, body, query, uri); uri = responseData['@odata.nextLink']; + if (uri && uri.includes('$top')) { + delete query['$top']; + } returnData.push.apply(returnData, responseData[propertyName]); } while (responseData['@odata.nextLink'] !== undefined);