From c166a3e40aa13b95b5f434e9d417d8b42f546374 Mon Sep 17 00:00:00 2001 From: Jonathan Bennetts Date: Fri, 30 Sep 2022 17:01:46 +0100 Subject: [PATCH] fix(microsoftExcel Node): fix issue with pagination when getting all items --- 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 c8558f524075f..cb71779117e3d 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);