FieldWriteOptions structure - Android

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

The FieldWriteOptions class provides functions that set the options for updating or creating fields in a record on a ServiceNow instance.

Name Type Description
queryItems Map<String, String> Collection of request query items that represent the write options.

Parent Topic:Mobile SDK - Android

FieldWriteOptions - FieldWriteOptions(vararg options: FieldWriteOptions.Options)

Sets the options for writing or creating fields in a record on your ServiceNow instance.

Name

Type

Description

vararg options

FieldWriteOptions.Options

Options to set when creating or writing to fields.Valid values:

  • TREAT_INPUT_VALUES_AS_DISPLAY_VALUES: Specified field values should be saved as the display values. If this value isn't set to true, the passed values are assumed to be the actual field values.
  • SUPPRESS_AUTO_SYS_FIELD: Suppress auto-generation of system fields.
The following code example shows how to call this function.
JavaScript
// Update assigned_to field using actual value (syd_id of user)val response = runCatching {    getNowTableService()?.updateRecord("sys_id_of_record", "sn_customerservice_case", mapOf("assigned_to" to "<sys_id_of_user>"))?.execute()}
// Update assigned_to field using display valueval fieldWriteOptions = FieldWriteOptions(FieldWriteOptions.Options.TREAT_INPUT_VALUES_AS_DISPLAY_VALUES)val response = runCatching {    getNowTableService()?.updateRecord("sys_id_of_user", "sn_customerservice_case", mapOf("assigned_to" to "John Doe"))?.execute()}
Search documentation
Search document titles and file paths on the australia branch