---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# FieldWriteOptions structure - Android

# FieldWriteOptions structure - Android {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

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

| Name | Type | Description |
|-|-|-|
| queryItems | [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/)\<String, String\> | Collection of request query items that represent the write options. |
[Table 1. Properties]

{#FieldWriteOptionsAndroidAPI__table_vx2_klw_5pb}

## FieldWriteOptions - FieldWriteOptions(vararg options: FieldWriteOptions.Options) {#ariaid-title2}

Sets the options for writing or creating fields in a record on your ServiceNow instance.
{#FldWriteOpt-FieldWriteOptions_O__table_xth_4vs_4pb__entry__3}

| 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. |
[Table 2. Parameters]

{#FldWriteOpt-FieldWriteOptions_O__table_xth_4vs_4pb}  
The following code example shows how to call this function.

    // 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 value
    val 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()
    }


