---
sourceDocument: Brazil Build workflows
sourceDocumentLink: https://www.servicenow.com/docs/r/build-workflows

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Build workflows

ft:clusterId :

    - crworkflow

bundleId :

    - crworkflow

workflow :

    - Creator


---

# Decision tables workflow

# Decision tables workflow {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Decision tables workflow

Decision tables in Workflow Studio allow ServiceNow customers to separate decision logic from their code, enabling more efficient and maintainable flows, scripts, and playbooks.
This approach supports collaboration by allowing business subject matter experts (SMEs) to manage decision logic directly without needing to modify code.
Show full answer Show less  

## Workflow for Creating Decision Tables

When developers encounter complex or frequently changing conditional logic, or need to share logic with non-developers, they can create decision tables in Workflow Studio. The process involves:

* Creating a decision table with defined inputs and result (output) columns.
* Adding condition columns to structure rules and decision rows to define conditional logic and outcomes.
* Testing and publishing the decision table.

Both developers and business SMEs can participate in adding rules, testing, and updating decision tables.

## Using Decision Tables

Developers can integrate decision tables into their applications by:

* Inserting code snippets generated from decision tables into scripts.
* Referencing decision tables using the "Make a decision" logic in flows or subflows.
* Adding decision tables to playbooks via the "Make a Decision - First Match" activity.

To update decision logic, developers or SMEs create a draft of the decision table, test it with new rules, and publish the updated version. For decision tables without draft authoring enabled, any changes are immediately active.  
Learn how to create and maintain decision tables in Workflow Studio for use in flows, subflows, playbooks, and anywhere on the ServiceNow AI Platform where you write code.

Decision tables enable you to decouple decision logic from your code. This means that you can create a decision table in Workflow Studio with your application logic and then reference the decision table to execute the logic elsewhere, such as in a flow , playbook, or script. This decoupling enables you to create more efficient and maintainable flows and scripts and allows the decision logic to be managed directly by the relevant business subject matter expert.

## Workflow for creating decision tables {#exploring-decision-builder__section_ngs_vxq_y1c}

The following illustration depicts the process for creating decision tables in Workflow Studio.  
Figure 1. Process for creating decision tables  
The workflow for creating decision tables in Workflow Studio is as follows:

1. A developer is writing a script or authoring a flow or subflow and realizes there is a need for a decision table. Decision tables are a more maintainable solution than hard-coded logic for the following scenarios:
   * There is a complex set of conditional, nested if/else or switch statements in the code.
   * The logic powering the code might change frequently.
   * There is a need to share the application logic with non-developers in a readable format.
   * There is a need for application logic to be managed independently from where it is implemented.
   * There is a need for application logic to be managed by non-developers.
   * There is a need to apply the same logic in more than one flow, subflow, or script.
   * There is application or business logic the developer wants to manage separately from the code.
   {#exploring-decision-builder__ul_lry_qnr_y1c}
2. The developer creates the decision table in Workflow Studio and adds inputs and result columns (outputs for the decisions).
3. A developer or a business subject matter expert (SME) can perform the next steps.
   1. Add condition columns to structure the rules.
   2. Add decision rows to build conditional rules and corresponding results.
   3. Test the decision table.
   4. Publish the decision table.
   {#exploring-decision-builder__ol_ed3_g5r_y1c}
4. The developer can use the decision table in a few ways.
   * They can create a code snippet of the decision table and insert it into their code.
   * They can add Make a decision logic in their flow or subflow and reference the decision table.
   * They can add a decision table to a playbook using the Make a Decision - First Match activity.
   {#exploring-decision-builder__ul_gl3_2vr_y1c}
5. If the decision table must be updated to reflect new logic, the developer or business SME can create a new draft of the table. They can test the table using the new logic and then publish the new version. To create a Decision Table, See [Create decision tables in Workflow Studio](https://www.servicenow.com/docs/sU4ovHOfbdUDOXmHbGZV~Q "Create decision tables in Workflow Studio to embed business logic into a series of if-then decision rules. Use decision tables when business logic is complex or may be reused in multiple places.").  
   Note:  
   For any decision table that doesn't use draft authoring, any change the developer or business SME makes is automatically active.
{#exploring-decision-builder__ol_p33_jmr_y1c}

