RangerMSP Business Automation for successful ITs


Go Back   RangerMSP Forums > Community Sharing Center > Online Services
Search Today's Posts Mark Forums Read

Thread Tools Search this Thread
 
March 6th, 2015, 05:16 PM
Mike C
 
Posts: 41
Anyone aware of a way to limit the result set returned by the API in a search to X results?
 
March 7th, 2015, 01:11 AM
Support Team
 
Posts: 7,510
By default the query object returns up to 100 records. In case you want to fetch more records you can simply change that default during object creation.

You need more and therefore you should create the object differently with specifying the max number of records you want to fetch, please use a reasonable number unlike a very high number that will reduce efficiency.

You need to add another parameter:

For example, in the C# sample, we have the following:

Quote:
RangerMSP.ObjectQuery<RangerMSP.Account> accountSearch = new RangerMSP.ObjectQuery<RangerMSP.Account>();
The above uses the default (100). To specify a different number, you should call it like this:

Quote:
RangerMSP.ObjectQuery<RangerMSP.Account> accountSearch = new RangerMSP.ObjectQuery<RangerMSP.Account>(RangerMSP .LinkEnum.linkAND, 500);
In the above line of code you will create the same AccountSearch object as in the first case, just it will ask for up to 500 rows.

Hope this helps!
 
March 9th, 2015, 05:41 PM
Mike C
 
Posts: 41
I believe so:

VB:

Dim ticketSearch As New CommitCRM.ObjectQuery(Of CommitCRM.Ticket)(LinkEnum.linkOR, 50)
 
March 11th, 2015, 12:09 PM
Mike C
 
Posts: 41
This portion is working great now. There are a few hiccups, but working on it.

Thanks
 
September 14th, 2016, 02:19 AM
vinayaksharma85
 
Posts: 1
As we have never really done this I was hoping to get some examples of how others go through their processes
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search



All times are GMT -6. The time now is 05:22 AM.

Archive - Top    

RangerMSP - A PSA software designed for MSPs and IT Services Providers
Forum Software Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.