NowGraphQLService interface - Android

concept australia Updated Sep 10, 2026 1 min read NowGQLServiceAndroidInterface.md
Raw file servicenow.com

The NowGraphQLService interface provides functions that allow you to make GraphQL requests to your ServiceNow through its GraphQL API.

Note: The GraphQL API works for guest users in the base ServiceNow system.

For more details on the ServiceNow GraphQL API, see Query record data using the GraphQL API framework.

Name Type Description
configuration NowServiceConfiguration Configuration to associate with the service.

Parent Topic:Mobile SDK - Android

NowGraphQLService - graphQLRequest(String query)

Passes the specified GraphQL query to the associated ServiceNow instance and returns the query results.

Name Type Description
query String GraphQL query to pass.
Type Description
Call<Byte Array> Query response.
JavaScript
fun makeGraphQLRequest(query: String) {   val call = graphQLService.graphQLRequest(query)   call.enqueue(     { response -> handleResponse(response) },    { nowDataError -> handleError(nowDataError) }   )}
Search documentation
Search document titles and file paths on the australia branch