HomeGuidesAPI ReferenceChangelogDiscussions
GuidesiMIS ProfessionaliMIS EnterpriseClient SupportLog In
Discussions

Discussions

Ask a Question
Back to All

/api/iqa linit command not working for over 500

In the example below we are trying to get the results of a query

       string queryPath = "$/MPStaff/Reports/Masterplumber Reports/Find Plumbers Extract";
        string requiredParameter = "&Limit=600";

        // Define headers for a REST API connection
        HttpClient client = new HttpClient();
        client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", strsessionAccesstoken);
        client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));

        // Make a request to the API
        HttpResponseMessage queryResult = client.GetAsync($"{strdomainname}/api/iqa?QueryName={queryPath}/{requiredParameter}").Result;

In iMS the IQA returns more than 500 records, but the API only returns 500, even if we use the limit command in the request.

Is there a way to ensure all records are returned by the API?

Cheers

Contact us
Copyright © Advanced Solutions International, All rights reserved.