cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mustaque_Ehiya
Level: Powered On

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?

 

Thanks,

Mustaque

 
2 REPLIES 2
Community Support Team
Community Support Team

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,

Alice       

 

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.

Highlighted
Mustaque_Ehiya
Level: Powered On

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.  

 

 

Loop.JPGLoop2.JPG

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,850)