Showing results for 
Search instead for 
Did you mean: 
Helper III
Helper III

D365 - List Record - Notes - How to loop through and get all records

Hi All,


I am writing a flow to get all the attachments in Dynamics before migrating all the documents to SharePoint.


Due to the limitation in the buffer size, the flow fails with the error:  Http request failed as there is an error: 'Cannot write more bytes to the buffer than the configured maximum buffer size: 104857600.'.


I am looking for options to loop through and get the list - like get the 1st record, add a row into excel, loop through, get the 2nd record, add a row into excel and so on.


Is there any other way to loop through the whole list without this error?




Community Support
Community Support

Re: D365 - List Record - Notes - How to loop through and get all records

Hi @Mustaque_Ehiya ,


Could you please share a screenshot of your current flow?


Best regards,



Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helper III
Helper III

Re: D365 - List Record - Notes - How to loop through and get all records

Hi @v-alzhan-msft 


I am looping through the Get Records like below - Get the 1 attachment from lead, create a Share Point file, delete it and loop through again for each attachment in the Leads.  This works well because I am deleting it and the loop runs till there is no attachment for that Lead.


I am trying to extend this Flow to get the full list of attachments from all Leads and other entities without deleting the attachment and writing an excel output.  




Helpful resources

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Top Solution Authors
Top Kudoed Authors
Users online (8,603)