get the next available results from the REST API query

Hi

How can I get the next available results from the REST API query?

I need to access a couple of thousand objects and I am limited by the max items for a single query.

I get an object that looks like below from the GET request that has the key MoreResults = True.

Now I want to get the the next object using a while loop until there are no more results.

My query looks like this https://m-files-server.com/REST/objects?o=102&p1185=2

How can I get the next results until the MoreResults key is False?

What do I write in the query?

{'Items': [{'AccessedByMe': '1899-12-30T00:00:00Z',
            'AccessedByMeUtc': '1899-12-30T00:00:00Z',
            'BaseProperties': [],
            'CheckedOutAt': '1601-01-01T00:00:00Z',
            'CheckedOutAtDisplayValue': '1.1.1601 0:00',
            'CheckedOutAtUtc': '1601-01-01T00:00:00Z',
            'MORE PROPERTIES......'],
 'MoreResults': True}

Parents Reply
  • The two endpoints are different; you cannot increase the value like that for a view listing, only a search.  The size of data returned from views is controlled by the vault itself, inside the advanced vault settings I seem to recall.

    You could, of course, create a view with some sort of grouping that breaks the object data into page-size chunks, then retrieve the root content of the view (to get the groups), then iterate through each grouping and return data from each one in turn.

    For simple processes though I would revert back to the search and increase the limit.

Children