--- title: DecisionTableAPI - Scoped, Global description: The DecisionTableAPI class enables you to access Decision Tables data in scoped and global server-side scripts.Instantiates a DecisionTableAPI object.Creates multiple records in the Choices \[sys\_choice\] table that are linked to answer elements.Creates multiple records in the Result \[sys\_decision\_multi\_result\_element\] table that are related to the specified decision table.Creates multiple records in the Decision Conditions \[sn\_decision\_table\_decision\_condition\] table that are related to the specified decision table.Creates a decision table record in the Decision Tables \[sys\_decision\] table.Creates multiple records in the Choices \[sys\_choice\] table that are linked to decision inputs.Creates multiple records in the Decision Inputs \[sys\_decision\_input\] table that are related to the specified decision table.Creates multiple records in the Decisions \[sys\_decision\_question\] table that are related to the specified decision table.Deletes a record in the Result \[sys\_decision\_multi\_result\_element\] table.Deletes a record in the Choices \[sys\_choice\] table.Deletes a record in the Decision Conditions \[sn\_decision\_table\_decision\_condition\] table.Deletes a record in the Decision Tables \[sys\_decision\] table.Deletes a record in the Decision Inputs \[sys\_decision\_input\] table.Deletes a record in the Decisions \[sys\_decision\_question\] table.Returns all decision tables from the Decision Tables \[sys\_decision\] table.Returns the answers associated with the specified decision table. An answer is a record on any table associated with a Decision \[sys\_decision\_question\] record.Evaluates a decision table based on the provided inputs and returns an answer. If no inputs are provided, returns the first default answer found.Evaluates a decision table based on the provided inputs and returns all correctly evaluated answers. If no inputs are provided, returns all default answers.Returns a single decision table from the Decision Tables \[sys\_decision\] table.Returns the decision inputs from the Decision Inputs \[sys\_decision\_input\] table associated with the passed in decision table.Returns the decisions from the Decision \[sys\_decision\_question\] table associated with the passed in decision table.Updates a record in the Result \[sys\_decision\_multi\_result\_element\] table.Updates a record in the Choices \[sys\_choice\] table.Updates a record in the Decision Conditions \[sn\_decision\_table\_decision\_condition\] table.Updates a record in the Decision Tables \[sys\_decision\] table.Updates a record in the Decision Inputs \[sys\_decision\_input\] table.Updates a record in the Decisions \[sys\_decision\_question\] table. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/api-reference/server-api-reference/DecisionTableAPI.html release: australia product: Server API Reference classification: server-api-reference topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 49 breadcrumb: [Server API reference, API reference, API implementation and reference] --- # DecisionTableAPI - Scoped, Global The DecisionTableAPI class enables you to access Decision Tables data in scoped and global server-side scripts. To access DecisionTableAPI methods, use the `sn_dt` namespace. You must have the decision\_table\_crud\_api role to use this API. To learn more about Decision Tables, see [Decision Tables](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/application-development/decision-table.md). ## Date/Time inputs When using date/time inputs in a decision table, values passed to DecisionTableAPI must be provided in the ServiceNow dateTime format: ``` yyyy-MM-dd HH:mm:ss ``` Date/time values are processed without applying time zone conversion. All comparisons are performed using the internal UTC representation of the dateTime value. As a result: - Decision table inputs don't support time zone offsets. - The system doesn't apply user and system timezones during evaluation. - `between` conditions compare the literal dateTime values exactly as provided. **Parent Topic:**[Server API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/api-server.md) ## DecisionTableAPI - DecisionTableAPI\(\) Instantiates a DecisionTableAPI object. |Name|Type|Description| |----|----|-----------| |None| | | ``` var dt = new sn_dt.DecisionTableAPI(); ``` ## DecisionTableAPI - createAnswerElementChoices\(String decisionID, Array questions\) Creates multiple records in the Choices \[sys\_choice\] table that are linked to answer elements.
| Name | Type | Description |
|---|---|---|
| decisionID | String | Sys\_id of the decision table record.Table: Decision Tables \[sys\_decision\] |
| choices | Array | Array of objects used to create records in the Choices \[sys\_choice\] table. Each object creates one choice record.``` [ { "answerElementID": "String", "label": "String", "order": Number, "value": "String" } ] ``` |
| choices.answerElementID | String | Sys\_id of the answer element to associate with the choice.Table: Result \[sys\_decision\_multi\_result\_element\] |
| choices.label | String | Label of the choice. |
| choices.order | Number | Optional. Order of the choice. |
| choices.value | String | Value of the choice. |
| Type | Description |
|---|---|
| Object | Object with information about the status of the API request.``` { "errors": [Array], "results": [Array], "status": "String" } ``` |
| <Object>.errors | Error information.Data type: Array of Objects ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.errors.message | Error message.Data type: String |
| <Object>.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.results | Array with information about the status of each choice.Data type: Array ``` "results": [ { "errors": [Array], "record": GlideRecord, "status": "String" } ] ``` |
| <Object>.results.errors | Error information for the choice.Data type: Array ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.results.errors.message | Error message.Data type: String |
| <Object>.results.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.results.record | GlideRecord reference to the choice created in the Choices \[sys\_choice\] table.Data type: GlideRecord |
| <Object>.results.status | Status that indicates whether the choice record was successfully created.Possible values: - Failure - Success Data type: String |
| <Object>.status | Status of the API request.Possible values: - Failure - Success Data type: String |
| Name | Type | Description |
|---|---|---|
| decisionID | String | Sys\_id of the decision table record.Table: Decision Tables \[sys\_decision\] |
| answerElements | Array | Array of objects used to create records in the Result Elements \[sys\_decision\_multi\_result\_element\] table. Each object creates one answer element record.``` [ { label: "String", maxsize: Number, order: Number, reference: "String", type: "String" } ] ``` |
| answerElements.label | String | Label of the answer element record. |
| answerElements.maxsize | Number | Optional. Maximum number of characters allowed in the answer element field.Use this property only if **answerElements.type** is `String`. Default value: 250 |
| answerElements.order | Number | Optional. Order of the answer element. |
| answerElements.reference | String | Required if the value of **answerElements.type** is `Reference`. Name of the reference table used by the answer element. |
| answerElements.type | String | Answer element input type.Valid values: - Boolean - Choice - Currency - Decimal - Due\_date - [Glide\_date](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/c_GlideDateScopedAPI.md) - [Glide\_date\_time](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/c_GlideDateTimeScoped.md) - [Glide\_duration](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/c_GlideDurationScopedAPI.md) - Integer - Longint - Reference - String |
| Type | Description |
|---|---|
| Object | Object with information about the status of the API request.``` { "errors": [Array], "results": [Array], "status": "String" } ``` |
| <Object>.errors | Error information.Data type: Array of Objects ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.errors.message | Error message.Data type: String |
| <Object>.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.results | Array with information about the status of each answer element.Data type: Array ``` "results": [ { "errors": [Array], "record": GlideRecord, "status": "String" } ] ``` |
| <Object>.results.errors | Error information for the answer element.Data type: Array ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.results.errors.message | Error message.Data type: String |
| <Object>.results.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.results.record | GlideRecord reference to the answer element created in the Result Elements \[sys\_decision\_multi\_result\_element\] table.Data type: GlideRecord |
| <Object>.results.status | Status that indicates whether the answer element record was successfully created.Possible values: - Failure - Success Data type: String |
| <Object>.status | Status of the API request.Possible values: - Failure - Success Data type: String |
| Name | Type | Description |
|---|---|---|
| decisionID | String | Sys\_id of the decision table record.Table: Decision Tables \[sys\_decision\] |
| conditions | Array | Array of objects used to create records in the Decision Conditions \[sn\_decision\_table\_decision\_condition\] table. Each object creates one decision condition record.``` [ { "decisionInput": "String", "defaultOperator": "String", "label": "String" } ] ``` |
| conditions.decisionInput | String | Sys\_id of the decision input to associate with the condition. Table: Decision Inputs \[sys\_decision\_input\] |
| conditions.defaultOperator | String | Optional. Default operator for the condition. For a list of valid operators, see [Operators available for filters and queries](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-user-interface/r_OpAvailableFiltersQueries.md). |
| conditions.label | String | Label of the decision condition record. |
| Type | Description |
|---|---|
| Object | Object with information about the status of the API request.``` { "errors": [Array], "results": [Array], "status": "String" } ``` |
| <Object>.errors | Error information.Data type: Array of Objects ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.errors.message | Error message.Data type: String |
| <Object>.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.results | Array with information about the status of each decision condition.Data type: Array of Objects ``` "results": [ { "errors": [Array], "record": GlideRecord, "status": "String" } ] ``` |
| <Object>.results.errors | Error information for the decision condition.Data type: Array of Objects ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.results.errors.message | Error message.Data type: String |
| <Object>.results.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.results.record | GlideRecord reference to the decision condition created in the Decision Conditions \[sn\_decision\_table\_decision\_condition\] table.Data type: GlideRecord |
| <Object>.results.status | Status that indicates whether the decision condition record was successfully created.Possible values: - Failure - Success Data type: String |
| <Object>.status | Status of the API request.Possible values: - Failure - Success Data type: String |
| Name | Type | Description |
|---|---|---|
| decisionTable | Object | Key-value pairs of the field names and values to use to create a decision table record.``` { "accessibleFrom": "String", "name": "String", "scope": "String } ``` |
| decisionTable.accessibleFrom | String | Optional. Scopes that have access to the decision table record.Valid values: - package\_private - public |
| decisionTable.name | String | Name of the decision table. |
| decisionTable.scope | String | Scope of the decision table record. |
| Type | Description |
|---|---|
| Object | Information about the status of the API request.``` { "errors": [Array], "record": GlideRecord, "status": "String" } ``` |
| <Object>.errors | Error information.Data type: Array of Objects ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.errors.message | Error message.Data type: String |
| <Object>.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.record | GlideRecord reference to the decision table created in the Decision Tables \[sys\_decision\] table.Data type: GlideRecord |
| <Object>.status | Status of the API request.Possible values: - Failure - Success Data type: String |
| Name | Type | Description |
|---|---|---|
| decisionID | String | Sys\_id of the decision table record.Table: Decision Tables \[sys\_decision\] |
| choices | Array | Array of objects used to create records in the Choices \[sys\_choice\] table. Each object creates one choice record.``` [ { "inputID": "String", "label": "String", "order": Number, "value": "String" } ] ``` |
| choices.inputID | String | Sys\_id of the decision input to associate with the choice.Table: Decision Inputs \[sys\_decision\_input\] |
| choices.label | String | Label of the choice. |
| choices.order | Number | Optional. Order of the choice. |
| choices.value | String | Value of the choice. |
| Type | Description |
|---|---|
| Object | Object with information about the status of the API request.``` { "errors": [Array], "results": [Array], "status": "String" } ``` |
| <Object>.errors | Error information.Data type: Array of Objects ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.errors.message | Error message.Data type: String |
| <Object>.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.results | Array with information about the status of each choice.Data type: Array of Objects ``` "results": [ { "errors": [Array], "record": GlideRecord, "status": "String" } ] ``` |
| <Object>.results.errors | Error information for the choice.Data type: Array of Objects ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.results.errors.message | Error message.Data type: String |
| <Object>.results.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.results.record | GlideRecord reference to the choice created in the Choices \[sys\_choice\] table.Data type: GlideRecord |
| <Object>.results.status | Status that indicates whether the choice record was successfully created.Possible values: - Failure - Success Data type: String |
| <Object>.status | Status of the API request.Possible values: - Failure - Success Data type: String |
| Name | Type | Description |
|---|---|---|
| decisionID | String | Sys\_id of the decision table record.Table: Decision Tables \[sys\_decision\] |
| inputs | Array | Array of objects used to create records in the Decision Input \[sys\_decision\_input\] table. Each object creates one decision input record.``` [ { label: "String", maxsize: Number, order: Number, reference: "String", type: "String" } ] ``` |
| inputs.label | String | Label of the decision input record. |
| inputs.maxsize | Number | Optional. Maximum number of characters allowed in the input field.Use this property only if **inputs.type** is `String`. Default value: 250 |
| inputs.order | Number | Optional. Order of the input. |
| inputs.reference | String | Required if the value of **inputs.type** is `Reference`. Name of the reference table used by the decision input. |
| inputs.type | String | Decision input type.Valid values: - String - Integer - True/False - Choice - Reference - Date - Date/Time |
| Type | Description |
|---|---|
| Object | Object with information about the status of the API request.``` { "errors": [Array], "results": [Array], "status": "String" } ``` |
| <Object>.errors | Error information.Data type: Array of Objects ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.errors.message | Error message.Data type: String |
| <Object>.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.results | Array with information about the status of each decision input.Data type: Array ``` "results": [ { "errors": [Array], "record": GlideRecord, "status": "String" } ] ``` |
| <Object>.results.errors | Error information for the decision input.Data type: Array ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.results.errors.message | Error message.Data type: String |
| <Object>.results.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.results.record | GlideRecord reference to the decision input created in the Decision Inputs \[sys\_decision\_input\] table.Data type: GlideRecord |
| <Object>.results.status | Status that indicates whether the decision input record was successfully created.Possible values: - Failure - Success Data type: String |
| <Object>.status | Status of the API request.Possible values: - Failure - Success Data type: String |
| Name | Type | Description |
|---|---|---|
| decisionID | String | Sys\_id of the decision table record.Table: Decision Tables \[sys\_decision\] |
| questions | Array | Array of objects used to create records in the Decisions \[sys\_decision\_question\] table. Each object creates one question record.``` [ { "active": Boolean, "answer": [Array], "condition": "String", "defaultAnswer": Boolean, "order": Number } ] ``` |
| questions.active | Boolean | Flag that indicates whether the question record is active.Valid values: - true: The question record is active. - false: The question record isn't active. |
| questions.answer | Array | List of possible answers to the question.For a single result table, the array can only have one object. For a multi-result table, the array can have multiple objects. ``` [ { "name": "String", "value": "String" } ] ``` |
| questions.answer.name | String | Name of the answer element. Table: Result \[sys\_decision\_multi\_result\_element\] |
| questions.answer.value | String | Value of the answer element.Table: Result \[sys\_decision\_multi\_result\_element\] |
| questions.condition | String | Conditions required to reach this question.The fields available for the conditions are the decision inputs that are associated with the decision table. For more information about creating conditions, see [Operators available for filters and queries](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-user-interface/r_OpAvailableFiltersQueries.md). |
| questions.defaultAnswer | Boolean | Flag that indicates whether this question is the default question for the decision table.Valid values: - true: The question is the default question. - false: The question isn't the default question. |
| questions.order | Number | Order of the question. |
| Type | Description |
|---|---|
| Object | Object with information about the status of the API request.``` { "errors": [Array], "results": [Array], "status": "String" } ``` |
| <Object>.errors | Error information.Data type: Array of Objects ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.errors.message | Error message.Data type: String |
| <Object>.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.results | Array with information about the status of each question.Data type: Array of Objects ``` "results": [ { "errors": [Array], "record": GlideRecord, "status": "String" } ] ``` |
| <Object>.results.errors | Error information for the question.Data type: Array of Objects ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.results.errors.message | Error message.Data type: String |
| <Object>.results.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.results.record | GlideRecord reference to the question created in the Decisions \[sys\_decision\_question\] table.Data type: GlideRecord |
| <Object>.results.status | Status that indicates whether the question record was successfully created.Possible values: - Failure - Success Data type: String |
| <Object>.status | Status of the API request.Possible values: - Failure - Success Data type: String |
| Name | Type | Description |
|---|---|---|
| answerElementID | String | Sys\_id of the answer element record.Table: Result Elements \[sys\_decision\_multi\_result\_element\] |
| Type | Description |
|---|---|
| Object | Information about the status of the API request.``` { "errors": [Array], "status": "String" } ``` |
| <Object>.errors | Error information.Data type: Array of Objects ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.errors.message | Error message.Data type: String |
| <Object>.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.status | Status of the API request.Possible values: - Failure - Success Data type: String |
| Name | Type | Description |
|---|---|---|
| choiceID | String | Sys\_id of the choice record. Table: Choices \[sys\_choice\] |
| Type | Description |
|---|---|
| Object | Information about the status of the API request.``` { "errors": [Array], "status": "String" } ``` |
| <Object>.errors | Error information.Data type: Array of Objects ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.errors.message | Error message.Data type: String |
| <Object>.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.status | Status of the API request.Possible values: - Failure - Success Data type: String |
| Name | Type | Description |
|---|---|---|
| conditionID | String | Sys\_id of the decision condition record. Table: Decision Conditions \[sn\_decision\_table\_decision\_condition\] |
| Type | Description |
|---|---|
| Object | Information about the status of the API request.``` { "errors": [Array], "status": "String" } ``` |
| <Object>.errors | Error information.Data type: Array of Objects ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.errors.message | Error message.Data type: String |
| <Object>.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.status | Status of the API request.Possible values: - Failure - Success Data type: String |
| Name | Type | Description |
|---|---|---|
| decisionID | String | Sys\_id of the decision table record.Table: Decision Tables \[sys\_decision\] |
| Type | Description |
|---|---|
| Object | Information about the status of the API request.``` { "errors": [Array], "status": "String" } ``` |
| <Object>.errors | Error information.Data type: Array of Objects ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.errors.message | Error message.Data type: String |
| <Object>.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.status | Status of the API request.Possible values: - Failure - Success Data type: String |
| Name | Type | Description |
|---|---|---|
| inputID | String | Sys\_id of the decision input record.Table: Decision Inputs \[sys\_decision\_input\] |
| Type | Description |
|---|---|
| Object | Information about the status of the API request.``` { "errors": [Array], "status": "String" } ``` |
| <Object>.errors | Error information.Data type: Array of Objects ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.errors.message | Error message.Data type: String |
| <Object>.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.status | Status of the API request.Possible values: - Failure - Success Data type: String |
| Name | Type | Description |
|---|---|---|
| questionID | String | Sys\_id of the question record.Table: Decisions \[sys\_decision\_question\] |
| Type | Description |
|---|---|
| Object | Information about the status of the API request.``` { "errors": [Array], "status": "String" } ``` |
| <Object>.errors | Error information.Data type: Array of Objects ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.errors.message | Error message.Data type: String |
| <Object>.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.status | Status of the API request.Possible values: - Failure - Success Data type: String |
| Type | Description |
|---|---|
| Object | All decision tables and their fields from the Decision Tables \[sys\_decision\] table. Each decision table contains these key-value pairs: - distinctAnswers: Array. Answer records associated with the decision table. Each record contains these key-value pairs. - answerElementValues: Array. Answer element values associated with the answer record. Each record contains these key-value pairs: - answerElementName: String. Name of the answer element. - label: String. Answer record label. - table: String. Table of the answer element if the answer element is a Reference type. - type: String. Type of the answer element. - valid: Boolean. True if the record exists in the system; otherwise false. - value: String. Value of the answer element. - label: String. Answer record label. - multipleAnswerRecord: Boolean. True if this is a multiple answer record; otherwise false. - valid: Boolean. True if the record exists in the system; otherwise false. - value: String. Sys\_id of the answer record. - table: String. Table containing the answer record. - referenceQualifier: String. Used for internal purposes. - inputs: Array. Decision inputs from the Decision Inputs \[sys\_decision\_input\] table associated with the decision table. Each record contains these key-value pairs. - searchField: String. Used for internal purposes. - defaultValue: String. Default value for the input. - show\_ref\_finder: Boolean. Used for internal purposes. - use\_dependent: Boolean. Used for internal purposes. - type: String. Input data type. - mandatory: Boolean. True if the input is mandatory; otherwise false. - extended: Boolean. True if the input extends another field; otherwise false. - local: Boolean. Used for internal purposes. - sys\_class\_name: String. Used for internal purposes. - reference: String. Reference table used if the input type is reference. - dependent\_on: String. Field that document ID and choice inputs depend on. - data\_structure: String. Used for internal purposes. - readonly: Boolean. True if the input is read-only; otherwise false. - id: String. Sys\_id of the input from the Decision Inputs \[sys\_decision\_input\] table. - type\_label: String. Input data type label. - table: String. Reference field table if the input type is reference. - order: Number. Order in which the system evaluates inputs. - ref\_qual: String. Condition applied to the reference table. - reference\_display: String. Used for internal purposes. - choiceOption: String. Method for users to see a list of suggested values. - label: String. Label of the input record. - hint: String. Hint text used to help users understand the input required. - name: String. Internal name of the input record. - attributes: Array. Field attributes that apply to the input record. - maxsize: Number. Maximum number of characters allowed in the field. - columnName: String. Name of the input. - answerElements: Array. Answer elements from the Answer elements \[sys\_decision\_multi\_result\_element\] table associated with the decision table. Each record contains these key-value pairs. - searchField: String. Used for internal purposes. - defaultValue: String. Default value for the answer element. - show\_ref\_finder: Boolean. Used for internal purposes. - use\_dependent: Boolean. Used for internal purposes. - type: String. Answer element data type. - mandatory: Boolean. True if the answer element is mandatory; otherwise false. - extended: Boolean. True if the answer element extends another field; otherwise false. - local: Boolean. Used for internal purposes. - sys\_class\_name: String. Used for internal purposes. - reference: String. Reference table used if the answer element type is reference. - dependent\_on: String. Field that document ID and choice answer elements depend on. - data\_structure: String. Used for internal purposes. - readonly: Boolean. True if the input is read-only; otherwise false. - id: String. Sys\_id of the input from the Answer elements \[sys\_decision\_multi\_result\_element\] table. - type\_label: String. Answer element data type label. - table: String. Reference field table if the answer element type is reference. - order: Number. Order of the answer elements. - ref\_qual: String. Condition applied to the reference table. - reference\_display: String. Used for internal purposes. - comments: Description of the answer element. - choiceOption: String. Method for users to see a list of suggested values. - label: String. Label of the answer element record. - hint: String. Hint text used to help users understand the answer element required. - name: String. Internal name of the answer element record. - attributes: Array. Field attributes that apply to the answer element record. - maxsize: Number. Maximum number of characters allowed in the field. - columnName: String. Name of the answer element. - domain: String. Domain in which the decision table is visible. - answerType: String. Used for internal purposes. - questions: Array. Decision records from the Decision \[sys\_decision\_question\] table associated with the decision table. Decision records contain these key-value pairs. - defaultAnswer: Boolean. True if this decision is the default for the decision table; otherwise false. - condition: String. Conditions required to reach this decision. The fields available for the condition are the decision inputs that are associated with this decision table. - answer: Object. Answer record associated with the decision. Answer objects contain these key-value pairs. - answerElementValues: Array. Answer element values associated with the answer record. Each record contains these key-value pairs: - answerElementName: String. Name of the answer element. - label: String. Answer record label. - table: String. Table of the answer element if the answer element is a Reference type. - type: String. Type of the answer element. - valid: Boolean. True if the record exists in the system; otherwise false. - value: String. Value of the answer element. - label: String. Answer record label. - multipleAnswerRecord: Boolean. True if this is a multiple answer record; otherwise false. - valid: Boolean. True if the record exists in the system; otherwise false. - value: String. Sys\_id of the answer record. - table: String. Table containing the answer record. - decisionTable: String. Sys\_id of the decision table from the Decision Tables \[sys\_decision\] table associated with the decision. - domain: String. Domain in which the decision is visible. - active: Boolean. True if the decision record is active; otherwise false. - id: String. Sys\_id of the decision record from the Decision \[sys\_decision\_question\] table. - label: String. Label for the decision record. - order: Number. Order in which the system evaluates decisions. - accessibleFrom: String. Scopes that have access to the record. - name: String. Internal name of the decision table record. - active: Boolean. True if the decision table record is active; otherwise false. - multipleAnswerSupported: Boolean. True if the decision table support multiple answers; otherwise false. - id: String. Sys\_id of the decision table record. - label: String. Label of the decision table record. - answerTable: Object. Answer table associated with the decision table. - displayValue: String. Display name of the table that contains answer records. - value: String. Internal name of the table that contains answer records. - conditions: Array. Conditions in the Decision \[sys\_decision\_question\_list\] table. Applicable only for decision tables created or edited in Decision Builder. Each entry contains the following key value pairs. - decisionInput: String. Sys\_id of the corresponding decision input. Listed in the Decision Inputs \[sys\_decision\_input\] table. - sysId: String. Sys\_id of the condition record. - defaultOperator: String. Default operator for the condition. - typeName: String. Name of the condition type. - description: String. Description of the condition. - label: String. Label of the condition. - type: String. Sys\_id of the condition type. - reference: String. Reference table used if the condition type is reference. - field: String. Field of the condition if the condition is dot-walked from an input of type reference. - decisionTable: String. Sys\_id of the decision table from the Decision Tables \[sys\_decision\] table. - fieldLabel: String. Field label of the condition if the condition is dot-walked from an input of type reference. - scope: String. Scope of the condition. - domain: String. Domain in which the condition is visible. - typeLabel: String. Label of the condition type. - fieldParentTable: Table name of the condition field. Value returns if the condition is dot-walked to a non-reference field from a reference input. - order: Number. Order of the condition. Format: JSON |
| Type | Description |
|---|---|
| Object | Answer records associated with the decision table. Each record contains these key-value pairs: - answerElementValues: Array. Answer element values associated with the answer record. Each record contains these key-value pairs: - answerElementName: String. Name of the answer element. - label: String. Answer record label. - table: String. Table of the answer element if the answer element is a Reference type. - type: String. Type of the answer element. - valid: Boolean. True if the record exists in the system; otherwise false. - value: String. Value of the answer element. - label: String. Answer record label. - multipleAnswerRecord: Boolean. True if this is a multiple answer record; otherwise false. - valid: Boolean. True if the record exists in the system; otherwise false. - value: String. Sys\_id of the answer record. - table: String. Table containing the answer record. Format: JSON |
| Name | Type | Description |
|---|---|---|
| decisionID | String | Sys\_id of the Decision Table record from the Decision Tables \[sys\_decision\] table. |
| inputs | Map | Optional. Input values for the Decision Inputs \[sys\_decision\_input\] table associated with the provided decision table. Use the value of the **Column name** field as the key. The data type of the value must match the Decision Input **Type** field. If no inputs are provided, returns the first default answer found.**Note:** All inputs and column names must follow the following format: - be all lower case and prefixed with a `u_` - blank spaces are replaced with `_` For example, - Input name: Incident - Input technical name: u\_incident - Result column name: Assignment Group - Result column technical name: u\_assignment\_group For more information, see [Make Decisions from JavaScript with the DecisionTableAPI - Workflow Automation CoE](https://www.servicenow.com/community/workflow-automation-articles/make-decisions-from-javascript-with-the-decisiontableapi/ta-p/2620035) |
| Type | Description |
|---|---|
| GlideRecord | The correctly evaluated Answer record associated with the decision table. An answer record is a record from the table defined in the Decision \[sys\_decision\_question\] record **Answer table** field. - If no inputs are provided, returns the first default answer found. If no default or correctly evaluated answers are found, returns an error. - If the decision table supports multiple answers, each answer is listed in the **result\_elements** field. |
| Name | Type | Description |
|---|---|---|
| decisionID | String | Sys\_id of the Decision Table record from the Decision Tables \[sys\_decision\] table. |
| inputs | Map | Optional. Input values for the Decision Inputs \[sys\_decision\_input\] table associated with the decision table. If you provide no inputs, returns all default answers.**Note:** All inputs and column names must follow this format: - Use all lowercase and prefix with u\_ - Replace blank spaces with \_ For example, - Input name: Incident - Input technical name: u\_incident - Result column name: Assignment Group - Result column technical name: u\_assignment\_group For more information, see [Make Decisions from JavaScript with the DecisionTableAPI - Workflow Automation CoE](https://www.servicenow.com/community/workflow-automation-articles/make-decisions-from-javascript-with-the-decisiontableapi/ta-p/2620035) |
| Type | Description |
|---|---|
| Array | List of answer records in GlideRecord format. An answer record is a record on any table associated with a Decision \[sys\_decision\_question\] record. - If you provide no inputs, returns all default answers. - If the system finds no default or correctly evaluated answers, returns an error. - If the decision table supports multiple answers, the **result\_elements** field lists each answer. |
| Type | Description |
|---|---|
| Object | Decision table from the Decision Tables \[sys\_decision\] table. Each decision table contains these key-value pairs. - distinctAnswers: Array. Answer records associated with the decision table. Each record contains these key-value pairs. - answerElementValues: Array. Answer element values associated with the answer record. Each record contains these key-value pairs: - answerElementName: String. Name of the answer element. - label: String. Answer record label. - table: String. Table of the answer element if the answer element is a Reference type. - type: String. Type of the answer element. - valid: Boolean. True if the record exists in the system; otherwise false. - value: String. Value of the answer element. - label: String. Answer record label. - multipleAnswerRecord: Boolean. True if this is a multiple answer record; otherwise false. - valid: Boolean. True if the record exists in the system; otherwise false. - value: String. Sys\_id of the answer record. - table: String. Table containing the answer record. - referenceQualifier: String. Used for internal purposes. - inputs: Array. Decision inputs from the Decision Inputs \[sys\_decision\_input\] table associated with the decision table. Each record contains these key-value pairs. - searchField: String. Used for internal purposes. - defaultValue: String. Default value for the input. - show\_ref\_finder: Boolean. Used for internal purposes. - use\_dependent: Boolean. Used for internal purposes. - type: String. Input data type. - mandatory: Boolean. True if the input is mandatory; otherwise false. - extended: Boolean. True if the input extends another field; otherwise false. - local: Boolean. Used for internal purposes. - sys\_class\_name: String. Used for internal purposes. - reference: String. Reference table used if the input type is reference. - dependent\_on: String. Field that document ID and choice inputs depend on. - data\_structure: String. Used for internal purposes. - readonly: Boolean. True if the input is read-only; otherwise false. - id: String. Sys\_id of the input from the Decision Inputs \[sys\_decision\_input\] table. - type\_label: String. Input data type label. - table: String. Reference field table if the input type is reference. - order: Number. Order in which the system evaluates inputs. - ref\_qual: String. Condition applied to the reference table. - reference\_display: String. Used for internal purposes. - choiceOption: String. Method for users to see a list of suggested values. - label: String. Label of the input record. - hint: String. Hint text used to help users understand the input required. - name: String. Internal name of the input record. - attributes: Array. Field attributes that apply to the input record. - maxsize: Number. Maximum number of characters allowed in the field. - columnName: String. Name of the input. - answerElements: Array. Answer elements from the Answer elements \[sys\_decision\_multi\_result\_element\] table associated with the decision table. Each record contains these key-value pairs. - searchField: String. Used for internal purposes. - defaultValue: String. Default value for the answer element. - show\_ref\_finder: Boolean. Used for internal purposes. - use\_dependent: Boolean. Used for internal purposes. - type: String. Answer element data type. - mandatory: Boolean. True if the answer element is mandatory; otherwise false. - extended: Boolean. True if the answer element extends another field; otherwise false. - local: Boolean. Used for internal purposes. - sys\_class\_name: String. Used for internal purposes. - reference: String. Reference table used if the answer element type is reference. - dependent\_on: String. Field that document ID and choice answer elements depend on. - data\_structure: String. Used for internal purposes. - readonly: Boolean. True if the input is read-only; otherwise false. - id: String. Sys\_id of the input from the Answer elements \[sys\_decision\_multi\_result\_element\] table. - type\_label: String. Answer element data type label. - table: String. Reference field table if the answer element type is reference. - order: Number. Order of the answer elements. - ref\_qual: String. Condition applied to the reference table. - reference\_display: String. Used for internal purposes. - comments: Description of the answer element. - choiceOption: String. Method for users to see a list of suggested values. - label: String. Label of the answer element record. - hint: String. Hint text used to help users understand the answer element required. - name: String. Internal name of the answer element record. - attributes: Array. Field attributes that apply to the answer element record. - maxsize: Number. Maximum number of characters allowed in the field. - columnName: String. Name of the answer element. - domain: String. Domain in which the decision table is visible. - answerType: String. Used for internal purposes. - questions: Array. Decision records from the Decision \[sys\_decision\_question\] table associated with the decision table. Decision records contain these key-value pairs. - defaultAnswer: Boolean. True if this decision is the default for the decision table; otherwise false. - condition: String. Conditions required to reach this decision. The fields available for the condition are the decision inputs that are associated with this decision table. - answer: Object. Answer record associated with the decision. Answer objects contain these key-value pairs. - answerElementValues: Array. Answer element values associated with the answer record. Each record contains these key-value pairs: - answerElementName: String. Name of the answer element. - label: String. Answer record label. - table: String. Table of the answer element if the answer element is a Reference type. - type: String. Type of the answer element. - valid: Boolean. True if the record exists in the system; otherwise false. - value: String. Value of the answer element. - label: String. Answer record label. - multipleAnswerRecord: Boolean. True if this is a multiple answer record; otherwise false. - valid: Boolean. True if the record exists in the system; otherwise false. - value: String. Sys\_id of the answer record. - table: String. Table containing the answer record. - decisionTable: String. Sys\_id of the decision table from the Decision Tables \[sys\_decision\] table associated with the decision. - domain: String. Domain in which the decision is visible. - active: Boolean. True if the decision record is active; otherwise false. - id: String. Sys\_id of the decision record from the Decision \[sys\_decision\_question\] table. - label: String. Label for the decision record. - order: Number. Order in which the system evaluates decisions. - accessibleFrom: String. Scopes that have access to the record. - name: String. Internal name of the decision table record. - active: Boolean. True if the decision table record is active; otherwise false. - multipleAnswerSupported: Boolean. True if the decision table support multiple answers; otherwise false. - id: String. Sys\_id of the decision table record. - label: String. Label of the decision table record. - answerTable: Object. Answer table associated with the decision table. - displayValue: String. Display name of the table that contains answer records. - value: String. Internal name of the table that contains answer records. - conditions: Array. Conditions in the Decision \[sys\_decision\_question\_list\] table. Applicable only for decision tables created or edited in Decision Builder. Each entry contains the following key value pairs. - decisionInput: String. Sys\_id of the corresponding decision input. Listed in the Decision Inputs \[sys\_decision\_input\] table. - sysId: String. Sys\_id of the condition record. - defaultOperator: String. Default operator for the condition. - typeName: String. Name of the condition type. - description: String. Description of the condition. - label: String. Label of the condition. - type: String. Sys\_id of the condition type. - reference: String. Reference table used if the condition type is reference. - field: String. Field of the condition if the condition is dot-walked from an input of type reference. - decisionTable: String. Sys\_id of the decision table from the Decision Tables \[sys\_decision\] table. - fieldLabel: String. Field label of the condition if the condition is dot-walked from an input of type reference. - scope: String. Scope of the condition. - domain: String. Domain in which the condition is visible. - typeLabel: String. Label of the condition type. - fieldParentTable: Table name of the condition field. Value returns if the condition is dot-walked to a non-reference field from a reference input. - order: Number. Order of the condition. Format: JSON |
| Type | Description |
|---|---|
| Object | Decision inputs from the Decision Inputs \[sys\_decision\_input\] table associated with the decision table. You can find the inputs associated with a decision table using the Decision Inputs related list in the Decision Tables \[sys\_decision\] table. Inputs contain these key-value pairs. - searchField: String. Used for internal purposes. - defaultValue: String. Default value for the input. - show\_ref\_finder: Boolean. Used for internal purposes. - use\_dependent: Boolean. Used for internal purposes. - type: String. Input data type. - mandatory: Boolean. True if the input is mandatory; otherwise false. - extended: Boolean. True if the input extends another field; otherwise false. - local: Boolean. Used for internal purposes. - sys\_class\_name: String. Used for internal purposes. - reference: String. Reference table used if the input type is reference. - dependent\_on: String. Field that document ID and choice inputs depend on. - data\_structure: String. Used for internal purposes. - readonly: Boolean. True if the input is read-only; otherwise false. - id: String. Sys\_id of the input from the Decision Inputs \[sys\_decision\_input\] table. - type\_label: String. Input data type label. - table: String. Reference field table if the input type is reference. - order: Number. Order in which the system evaluates inputs. - ref\_qual: String. Condition applied to the reference table. - reference\_display: String. Used for internal purposes. - choiceOption: String. Method for users to see a list of suggested values. - label: String. Label of the input record. - hint: String. Hint text used to help users understand the input required. - name: String. Internal name of the input record. - attributes: Array. Field attributes that apply to the input record. - maxsize: Number. Maximum number of characters allowed in the field. - columnName: String. Name of the input. Format: JSON |
| Type | Description |
|---|---|
| Object | Decisions from the Decision \[sys\_decision\_question\] table associated with the decision table. You can find the decisions associated with a decision table using the Decisions related list in the Decision Tables \[sys\_decision\] table. Decision records contain these key-value pairs.- defaultAnswer: Boolean. True if this decision is the default for the decision table; otherwise false. - condition: String. Conditions required to reach this decision. The fields available for the condition are the decision inputs that are associated with this decision table. - answer: Object. Answer record associated with the decision. Answer objects contain these key-value pairs. - answerElementValues: Array. Answer element values associated with the answer record. Each record contains these key-value pairs: - answerElementName: String. Name of the answer element. - label: String. Answer record label. - table: String. Table of the answer element if the answer element is a Reference type. - type: String. Type of the answer element. - valid: Boolean. True if the record exists in the system; otherwise false. - value: String. Value of the answer element. - label: String. Answer record label. - multipleAnswerRecord: Boolean. True if this is a multiple answer record; otherwise false. - valid: Boolean. True if the record exists in the system; otherwise false. - value: String. Sys\_id of the answer record. - table: String. Table containing the answer record. - decisionTable: String. Sys\_id of the decision table from the Decision Tables \[sys\_decision\] table associated with the decision. - domain: String. Domain in which the decision is visible. - active: Boolean. True if the decision record is active; otherwise false. - id: String. Sys\_id of the decision record from the Decision \[sys\_decision\_question\] table. - label: String. Label for the decision record. - order: Number. Order in which the system evaluates decisions. Format: JSON |
| Name | Type | Description |
|---|---|---|
| answerElementID | String | Sys\_id of the answer element record.Table: Result Elements \[sys\_decision\_multi\_result\_element\] |
| answerElement | Object | Key-value pairs to update the answer element record.``` { comments: "String", label: "String", maxsize: Number } ``` |
| answerElement.comments | String | Optional. Description of the answer element. |
| answerElement.label | String | Optional. Label of the answer element record. |
| answerElement.maxsize | Number | Optional. Maximum number of characters allowed in the answer element field. Use this property only if **answerElement.type** is `String`. |
| Type | Description |
|---|---|
| Object | Information about the status of the API request.``` { "errors": [Array], "record": GlideRecord, "status": "String" } ``` |
| <Object>.errors | Error information.Data type: Array of Objects ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.errors.message | Error message.Data type: String |
| <Object>.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.record | GlideRecord reference to the answer element updated in the Result Elements \[sys\_decision\_multi\_result\_element\] table.Data type: GlideRecord |
| <Object>.status | Status of the API request.Possible values: - Failure - Success Data type: String |
| Name | Type | Description |
|---|---|---|
| choiceID | String | Sys\_id of the choice record. Table: Choices \[sys\_choice\] |
| choice | Object | Key-value pairs to update the choice record.``` { label: "String", order: Number, value: "String" } ``` |
| choice.label | String | Optional. Label of the choice. |
| choice.order | Number | Optional. Order of the choice. |
| choice.value | String | Optional. Value of the choice. |
| Type | Description |
|---|---|
| Object | Information about the status of the API request.``` { "errors": [Array], "record": GlideRecord, "status": "String" } ``` |
| <Object>.errors | Error information.Data type: Array of Objects ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.errors.message | Error message.Data type: String |
| <Object>.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.record | GlideRecord reference to the choice updated in the Choices \[sys\_choice\] table.Data type: GlideRecord |
| <Object>.status | Status of the API request.Possible values: - Failure - Success Data type: String |
| Name | Type | Description |
|---|---|---|
| conditionID | String | Sys\_id of the decision condition record. Table: Decision Conditions \[sn\_decision\_table\_decision\_condition\] |
| condition | Object | Key-value pairs to update the decision condition record.``` { defaultOperator: "String", description: "String", label: "String" } ``` |
| condition.defaultOperator | String | Optional. Default operator for the condition. For a list of valid operators, see [Operators available for filters and queries](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-user-interface/r_OpAvailableFiltersQueries.md). |
| condition.description | String | Optional. Description of the condition. |
| condition.label | String | Optional. Label of the decision condition record. |
| Type | Description |
|---|---|
| Object | Information about the status of the API request.``` { "errors": [Array], "record": GlideRecord, "status": "String" } ``` |
| <Object>.errors | Error information.Data type: Array of Objects ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.errors.message | Error message.Data type: String |
| <Object>.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.record | GlideRecord reference to the decision condition updated in the Decision Conditions \[sn\_decision\_table\_decision\_condition\] table.Data type: GlideRecord |
| <Object>.status | Status of the API request.Possible values: - Failure - Success Data type: String |
| Name | Type | Description |
|---|---|---|
| decisionID | String | Sys\_id of the decision table record.Table: Decision Tables \[sys\_decision\] |
| decisionTable | Object | Key-value pairs to update the decision table record.``` { "accessibleFrom": "String", "name": "String" } ``` |
| decisionTable.accessibleFrom | String | Optional. Scopes that have access to the decision table record.Valid values: - package\_private - public |
| decisionTable.name | String | Optional. Name of the decision table. |
| Type | Description |
|---|---|
| Object | Information about the status of the API request.``` { "errors": [Array], "record": GlideRecord, "status": "String" } ``` |
| <Object>.errors | Error information.Data type: Array of Objects ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.errors.message | Error message.Data type: String |
| <Object>.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.record | GlideRecord reference to the decision table.Data type: GlideRecord Table: Decision Tables \[sys\_decision\] |
| <Object>.status | Status of the API request.Possible values: - Failure - Success Data type: String |
| Name | Type | Description |
|---|---|---|
| inputID | String | Sys\_id of the decision input record.Table: Decision Inputs \[sys\_decision\_input\] |
| input | Object | Key-value pairs to update a decision input record. ``` { active: Boolean, defaultValue: "String", label: "String", mandatory: Boolean, maxsize: Number, order: Number, readonly: Boolean } ``` |
| input.active | Boolean | Optional. Flag that indicates whether the decision input record is active. Valid values: - true: The decision input record is active. - false: The decision input record is not active. |
| input.defaultValue | String | Optional. Default value for the input. |
| input.label | String | Optional. Label of the decision input record. |
| input.mandatory | Boolean | Optional. Flag that indicates whether the input is mandatory. Valid values: - true: The input is mandatory. - false: The input is not mandatory. |
| input.maxsize | Number | Optional. Maximum number of characters allowed in the input field. Use this property only if **input.type** is `String`. |
| input.order | Number | Optional. Order of the input. |
| input.readonly | Boolean | Optional. Flag that indicates whether the input is read-only. Valid values: - true: The input is read-only. - false: The input is not read-only. |
| Type | Description |
|---|---|
| Object | Information about the status of the API request.``` { "errors": [Array], "record": GlideRecord, "status": "String" } ``` |
| <Object>.errors | Error information.Data type: Array of Objects ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.errors.message | Error message.Data type: String |
| <Object>.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.record | GlideRecord reference to the decision input updated in the Decision Inputs \[sys\_decision\_input\] table.Data type: GlideRecord |
| <Object>.status | Status of the API request.Possible values: - Failure - Success Data type: String |
| Name | Type | Description |
|---|---|---|
| questionID | String | Sys\_id of the question record.Table: Decisions \[sys\_decision\_question\] |
| question | Object | Key-value pairs to update the question record.``` { "active": Boolean, "answer": [Array], "condition": "String", "defaultAnswer": Boolean, "label": "String", "order": Number } ``` |
| question.active | Boolean | Optional. Flag that indicates whether the question record is active. Valid values: - true: The question record is active. - false: The question record isn't active. |
| question.answer | Array | Optional. List of possible answers to the question.For a single result table, the array can only have one object. For a multi-result table, the array can have multiple objects. ``` [ { "name": "String", "value": "String" } ] ``` |
| question.answer.name | String | Optional. Name of the answer element.Table: Result Elements \[sys\_decision\_multi\_result\_element\] |
| question.answer.value | String | Optional. Value of the answer element.Table: Result Elements \[sys\_decision\_multi\_result\_element\] |
| question.condition | String | Optional. Conditions required to reach this question.The fields available for the conditions are the decision inputs that are associated with the decision table. For more information about creating conditions, see [Operators available for filters and queries](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-user-interface/r_OpAvailableFiltersQueries.md). |
| question.defaultAnswer | Boolean | Optional. Flag that indicates whether this question is the default question for the decision table.Valid values: - true: The question is the default question. - false: The question isn't the default question. |
| question.label | String | Optional. Label of the question record. |
| question.order | Number | Optional. Order of the question. |
| Type | Description |
|---|---|
| Object | Information about the status of the API request.``` { "errors": [Array], "record": GlideRecord, "status": "String" } ``` |
| <Object>.errors | Error information.Data type: Array of Objects ``` "errors": [ { "message": "String", "type": "String } ] ``` |
| <Object>.errors.message | Error message.Data type: String |
| <Object>.errors.type | Type of error.Possible value: INTERNAL\_ERROR Data type: String |
| <Object>.record | GlideRecord reference to the question updated in the Decisions \[sys\_decision\_question\] table.Data type: GlideRecord |
| <Object>.status | Status of the API request.Possible values: - Failure - Success Data type: String |