I am using .Net API provided by Podio. By default it fetches only 20 items per request. If we set filter limit to 500 (Which is max for podio) I can fetch items in sets of 500 for all items. But here I am facing issue how to iterate these items collection 0 to 500 501 to 1000 1001 to so on.... I am getting total count of items in podio Below is my Code
int totalItemCount = 1750; //For this example
int totIterations = totalItemCount / 500;
int offsetValue = 0;
for (int i = 0; i < totIterations + 1; i++)
{
filterOption.Limit = 500;
filterOption.Offset = offsetValue;
filterOption.Remember = true;
filteredContent = await _Podio.ItemService.FilterItems(appId, filterOption);
//Some Code here
offsetValue += 500;
}
This is fetching same items every time it iterates. Expected is after first 500 it should start from 501 to next 500 items... Can anyone help as there is very limited documentation on .Net podio API
filterOption
? Also, you don't needremember=true
part, exactly opposite, if you are not going to re-use this filter call, then you should setremember=false
– Pavlo - Podio