This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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
  • Hi, I tried to work around the limits by using a view created in M-Files. The view contains about 300 items, but it seems like getting objects from a view is limited to a maximum of 200 items. I cannot apply the limit parameter to views?

    views/V109/V15246/objects returns max 200 items.
    views/V109/V15246/objects&limit=500 returns an error
Children