Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

Paging with FetchXML

(1) ShareShare
ReportReport
Posted on by 4

Hi all,

 

We have a case where we need to fetch more than 5,000 records from a D365 entity. We cannot use OData filtering due to complexity of the query, so we have to use FetchXML. 

In the screenshot below, all records (there are about 5,300) are fetched successfully using paging mechanism. Note, there's no action under Apply To Each which of course is unrealistic.

tonyshellauk_0-1716340630084.png

 

However, when we add ANY action under Apply To Each (even a simple Compose action which doesn't even use any data and just composes a static hard coded value, the paging stops working and Do Until only fires once instead of 2-3 times as it does without Compose action. 

tonyshellauk_1-1716340863244.png

This is extremely strange and we cannot find any reasonable explanation to this behavior. Has anyone come across something similar and how did you overcome it?

 

TIA,

Tony S.

 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard