Board.Actions will only return 50 Items
See original GitHub issueHi, I only started using Manatee.Trello yesterday and figured out how to get it working for the most part. Never dealt with Async stuff before so that was new. Anyway, I want to get ALL Actions from a Board but not matter what I do it will only return 50 when I know there is a lot more. I don’t know what I’m doing wrong.
This is a .NET Forms App with C#. I’m using private form level declarations to make it easy. I’m not using the Return on the Sync calls at all.
The other weird thing is that I have to call this twice in order to get the data. First when the form opens and then second when I call the same thing from a Button on the form.
`
private TrelloAuthorization _trelloAuthorization;
private TrelloFactory _factory;
private Board _board;
public async Task<Board> GetBoard()
{
_factory = new TrelloFactory();
var board = _factory.Board("5d6eae8fd0ad2b7111f9120a", _trelloAuthorization);
_board = (Board)board;
_board.Actions.Limit = 10000;
_board.Actions.Filter(System.DateTime.Now, System.DateTime.Now.AddYears(-1));
await _board.Refresh();
return (Board)_board;
}`
I expected to get all the Actions back from the Board, not just 50. Please help. Thanks!
- OS: Windows 10 Pro
- .Net Target 4.7.2
- Version 4.0.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:13
Top GitHub Comments
That’s perfect Greg! I just got v4.1.1 and the FullName is coming through now, plus I have all 621 Actions now. I understand about the DownloadedFields property so thanks for pointing that out.
v4.1.1 is out which should fix the NRE. Just update the Nuget package and you should be good.
For the
DownloadedFields
property, read here