Closed ahamedfazil closed 3 months ago
@ahamedfazil : I checked the code and don't see an obvious reason to explain what you see. The only reason I can come up with that the SharePoint API call is somehow not including the needed fields in your 5K+ case. To further validate that scenario, can you grab a Fiddler trace of a GetPagesAsync
call on a 5K+ pages library and one one a smaller pages library and get them to me (bjansen@microsoft.com).
@ahamedfazil : checking if you can provide the debug information? Or is the issue not reproducible?
@ahamedfazil : closing this per no response. If this still is relevant then please provide the needed information.
Category
Describe the bug
I am using
GetPagesAsync()
method to get all the pages from a Site. Once I fetch the pages I loop through each item and get pageControls
. When I fetch all items (where SitePages has more than 5k item) I get all the pages but Controls give 0 items.If I fetch the same site with page name like
GetPagesAsync('abc.aspx')
then I can see the controls. I noticed this issue only for the site which has more than 5k itemsSteps to reproduce
GetPagesAsync()
Expected behavior
GetPagesAsync method should return page items with page controls even for the SitePages which has more than 5k pages.
Thanks for your contribution! Sharing is caring.