-
Type: Improvement
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 10.10, 2021.1
-
Component/s: Automation
-
Tags:
Operation Collection.GetDocumentsFromCollection returns a maximum number of results of 50, as it calls page provider default_content_collection, which is configured with a page size of 50, and does not offer any parameter to change the page size or to browse the pagination. This can be impeading when calling the operation from an automation chain/script and wants to retrieve all the documents in a collection.
Workaround: use operation Repository.PageProvider. e.g.:
var docs = Repository.PageProvider(input, { 'providerName': 'default_content_collection', 'pageSize': 0, 'queryParams': collection.id });
Request is to add a "pageSize" parameter which would allow to fetch more collections when calling the operation Collection.GetDocumentsFromCollection