Method Community

 

Select XML Call, add limit to records returned

Last post 07-26-2017 8:46 AM by Method_Peter. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-19-2017 1:49 PM

    Select XML Call, add limit to records returned

    is there a way in the maethod api select xml v2 call to set a limit on the number of records that get returned?


    It looks like were not the only ones interested in this functionality.  http://www.method.me/cs/forums/p/4149/15979.aspx#15979  

  • 07-26-2017 8:46 AM In reply to

    Re: Select XML Call, add limit to records returned

    There is no way to limit the response to a specific number of results in the current API.  There are two potential workarounds (neither offer a perfect solution):

    1. As discussed in the other forum post mentioned, filtering on existing fields can narrow the results, but it would be hard to get a precise number.

    2. You could ask for all results (or a filtered subset) and identify the specific number you want from the records returned, but that's not ideal from a performance and processing perspective.

    This is good feature request and has been captured.  I'm assuming the primary use case is pagination.  If there are thoughts on additional use cases we would welcome them.

    Peter Dyer
    Product Manager - Method
Page 1 of 1 (2 items)