cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jay95
Helper V
Helper V

SharePoint Export file in CSV showing only 101 items using flow

Hello Expert!

 

I have created a flow which export my SharePoint list items in CSV, Everything is working fine but in my CSV file I am getting only 100 items not all the items of SharePoint, Is there any limit that we can export only 100 items. I have used Get items then Create CSV Table and then Create file in my one drive. 

Please see below screenshot of my flow.

jay95_0-1629273648884.png

@eric-cheng

1 ACCEPTED SOLUTION

Accepted Solutions
v-LilyW-msft
Community Support
Community Support

Hi @jay95 

By default, Get items returns on 100 items.

If you are working with items more than 100, you can increase this limit up to the list view threshold limit of 5,000.

let’s say I want 500 items to be fetched. So, I have mentioned 500 in the threshold.

vLilyWmsft_0-1629274519732.png

vLilyWmsft_2-1629275009821.png

For more info about Get items limits, you can refer to:

https://docs.microsoft.com/en-us/sharepoint/dev/business-apps/power-automate/guidance/working-with-g...

Hope the content above may help you.

Best Regards

If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

10 REPLIES 10
happyume
Solution Sage
Solution Sage

Default limit for Get Items from SharePoint is 100 rows.

 

To override this, click the 3 dots/ellipses next to the Get Items action and under settings then set Pagination to Yes, and Threshold to a big number (closely matching expected size of your SharePoint List).

 

happyume_0-1629274378532.png

 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If this post or my previous reply was useful in other ways, please consider giving it Thumbs Up.

v-LilyW-msft
Community Support
Community Support

Hi @jay95 

By default, Get items returns on 100 items.

If you are working with items more than 100, you can increase this limit up to the list view threshold limit of 5,000.

let’s say I want 500 items to be fetched. So, I have mentioned 500 in the threshold.

vLilyWmsft_0-1629274519732.png

vLilyWmsft_2-1629275009821.png

For more info about Get items limits, you can refer to:

https://docs.microsoft.com/en-us/sharepoint/dev/business-apps/power-automate/guidance/working-with-g...

Hope the content above may help you.

Best Regards

If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-LilyW-msft Thanks Sir for your quick response.

Everything is working fine now but flow is taking too much time and one more thing is there any way to filter out my SharePoint items within Get Items connector.  Actually after getting the items I have created a Condition that IF Name(SharePoint Column) is Equal to "XYZ" then create a CSV file. And what will happened if my SharePoint item will have more than 5000 items?  Showing flow run time out:

jay95_0-1629276837697.png

 



When you do Get Items, you can use ODATA Filter Query to get items which meet your criteria.

This way you can only retrieve items which meet your business use case.

 

happyume_0-1629279401768.png

 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If this post or my previous reply was useful in other ways, please consider giving it Thumbs Up.

Yes, I know,

But when I use oData filter showing error. Below is my formula:
Location eq 'Midwest'

What is the error message that you are getting when you use ODATA filter query instead of the condition action

Here is the error:

jay95_0-1629279896033.png

 

happyume
Solution Sage
Solution Sage

Use RequestStatus eq 'New' instead of Request Status eq 'New'

- when writing ODATA Filter Query: remove the space from between the two words of column name, i.e. Request and Status

 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If this post or my previous reply was useful in other ways, please consider giving it Thumbs Up.

Now Getting blank CSV file

Hi @jay95 

Please check if the outputs of Get items has content.

I test on my side with the expression, it can filter the items that status is equal to New and the CSV File can be created with these items.

This is my test list

vLilyWmsft_1-1629353282034.png
vLilyWmsft_0-1629353257094.png

About how to find the column internal name you can refer to:

https://tomriha.com/what-is-sharepoint-column-internal-name-and-where-to-find-it/

vLilyWmsft_2-1629353430068.png

After flow runs,the csv file will be created with the content.

vLilyWmsft_3-1629353488006.png

Best Regards.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (1,703)