Doug Den Hoed
Doug Den Hoed

Reputation: 66

How can I pull more (or ideally, all) of the updates via the PROJ object?

A search on the PROJ object for updates seems to be capped at 20, even though more updates exist. Here is an example:

https : //[domain].attask-ondemand.com/attask/api/v4.0/proj/search?method=GET&fields=updates:styledMessage&ID=[guid]

Conversely, by searching the NOTE object using topNoteObjCode = PROJ and topObjID = [guid], all of the notes are retrieved.

Anyone know a trick to pull more (or ideally, all) of the updates via the PROJ object?

Regards, Doug

Upvotes: 0

Views: 97

Answers (1)

Craig
Craig

Reputation: 326

I am working on something similar at the moment and it does not appear that it is possible to pull any more or less than 20 updates using the project->Updates collection. I suspect that is because this is a collection and you cannot pass arguments in.

For items like this I end up simply passing an array of ID's I'm looking for into the updates object as a "in" search against the refObjCode field. There is an unpublished number of ID's you can pass at a time. I think it is around 130, but I always batch it at 100.

It's a bit of a pain sorting the resulting list of updates back into the list of projects or tasks.

Upvotes: 0

Related Questions