Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

FetchConfiguration class- Android

The FetchConfiguration class provides the ability to define the configuration for fetching records from the associatedServiceNow table.

This class only contains a single function (constructor), FetchConfiguration().

NameTypeDescription
filterFilterQuery to use to filter the return results.
limitIntegerNumber of records per page/response to return.
queryParamsQueryParamsIterable structure that contains name-value pairs of request query parameters.
readConfigurationFieldReadConfigurationConfiguration for the fields to return in the response.

Parent Topic:Mobile SDK - Android

FetchConfiguration - FetchConfiguration(filter: Filter? = null, limit: Int? = null, readConfiguration: FieldReadConfiguration? = null)

Enables you to define the records and fields to return from the associated ServiceNow table.

NameTypeDescription
filterFilterOptional. Query to use to filter the records that are returned from the table. For example: `active=true^short_descriptionLIKEbroken`Default: null - Return all records.
limitIntegerOptional. Number of records to return per page/response.Default: null - Return the maximum allowed by the ServiceNow REST API.
readConfigurationFieldReadConfigurationOptional. Configuration of the fields returned in the response.Default: null - Return all fields.

The following code example shows how to call this function.

nowTableService.records("incident", FetchConfiguration( 
  filter = Filter("active=true"), 
  limit = 10, 
  readConfiguration = FieldReadConfiguration( 
    includeFields = listOf("sys_id", "short_description") 
  ) 
))