GET api/{context}/query/FetchResults

parameters:   ?text={text}&page={page}&pageSize={pageSize}

Fetch paged results for an Aegis CRM custom query

Request Information

ParameterDescriptionAdditional information
text
The ID of the query to use.

Define this parameter in the request URI.

page
Optional page number.  If not included, page 1 will be returned.

Define this parameter in the request URI.

pageSize
Optional page size, limit of 100.  If not included, the default page size will be 25.

Define this parameter in the request URI.

Special Field Notes

Field NameNotes
NextPageLink
Contains the full URL necessary to retrieve the next page of records.
PageCount
The number of pages contained in the result set, based on the PageSize passed in the API request.
PreviousPageLink
Contains the full URL necessary to retrieve the previous page of records.
TotalCount
The total number of records contained in the result set.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "NextPageLink": "sample string 1",
  "PreviousPageLink": "sample string 2",
  "PageCount": 3,
  "TotalCount": 4,
  "DataTable": null
}

application/xml, text/xml

Sample:
<QueryResultsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BDS.Web.WebApi.Models">
  <DataTable i:nil="true" />
  <NextPageLink>sample string 1</NextPageLink>
  <PageCount>3</PageCount>
  <PreviousPageLink>sample string 2</PreviousPageLink>
  <TotalCount>4</TotalCount>
</QueryResultsModel>