---
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


---

# Dynamic outputs

# Dynamic outputs {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 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 Dynamic outputs

Dynamic outputs in ServiceNow Flow Designer allow flow designers to access action and subflow outputs as dynamically generated data pills during flow design.
This feature enables the creation of data gathering actions that produce complex objects from outputs of the ServiceNow AI Platform and Integration Hub.
Dynamic outputs are not part of the base system and require theServiceNow Flow Designer - Introspection \[com.glide.hub.flowdesignerintrospection\]plugin, which is accessed by requesting the Integration Hub plugin.
Show full answer Show less  
During flow creation, dynamic outputs retrieve the schema values of complex objects and display them as data pills, facilitating easier data manipulation and integration with external systems.

## Key Features

* **Data Gathering Actions:** Specialized actions designed to collect data, typically from third-party systems via REST calls, and produce JSON outputs formatted with a `data` property. These actions are called from dynamic inputs rather than directly added to flows.
* **Dynamic Objects:** Complex objects or arrays of complex objects built dynamically by data gathering actions instead of being hard-coded, enabling flexible and adaptable flow designs.
* **Timeout Configuration:** Data gathering actions have a default timeout of 300 seconds (5 minutes) to complete data collection. This timeout can be adjusted through the `snflowdesigner.syncactionexecutiontimeoutinseconds` system property, allowing customization based on data retrieval needs.
* **Integration Focus:** Dynamic outputs are especially useful for third-party integrations, enabling flows to fetch and introspect data from external systems and APIs during design time.

## Important Guidelines and Considerations

* **Output Constraints:** JSON outputs must be carefully structured with only one JSON output per action and formatted to include a `data` property. Outputs intended for dynamic choice or template inputs should not exceed 5000 items to ensure proper display.
* **Error Handling:** Since data gathering actions rely on scripting to generate JSON outputs, script errors can prevent proper data retrieval. It is important to review and test scripts thoroughly to avoid such issues. If scripting errors occur, warning messages will notify the designer during flow execution.
* **Performance Considerations:** Excessive timeout values should be avoided in interactive flows where users expect prompt responses. Optimizing data gathering actions for timely completion improves user experience.

## Getting Started

To implement dynamic outputs:

* Create a data gathering action that collects output values from external systems and formats them as dynamic objects.
* Create a parent action with a dynamic output that references the child data gathering action.
* Add the parent action to your flow in Workflow Studio to utilize the dynamic outputs as data pills.

This approach streamlines integrating external data sources into flows, enhancing automation capabilities and flexibility.  
Access action and subflow outputs as dynamically generated data pills during flow design. You can also build data gathering actions to generate complex objects from ServiceNow AI Platform and Integration Hub outputs.
Note:  
Dynamic outputs are not available in the base system. To use dynamic outputs in Workflow Studio, you must [Request an Integration Hub plugin](https://www.servicenow.com/docs/access?context=request-integrationhub&version=brazil&pubname=brazil-integrate-applications&ft:locale=en-US). Dynamic outputs are part of the ServiceNow Flow Designer - Introspection \[com.glide.hub.flow_designer_introspection\] plugin.

During the flow design, a dynamic output retrieves the complex object's schema values and
displays them as data pills in the data panel.  
A dynamic output must point to a data gathering action that collects the displayed data. For example, a data gathering action can retrieve values from a third-party system as part of an [Integration Hub spoke](https://www.servicenow.com/docs/access?context=spokes-list&version=brazil&pubname=brazil-integrate-applications&ft:locale=en-US). To use a dynamic output in Workflow Studio:

1. An action designer creates a data gathering action.
2. An action designer creates a parent action with a dynamic output that points to the child data gathering action.
3. A flow designer adds the parent action to a flow.
{#dynamic-outputs__ol_qn1_nwl_mjb}

## Data gathering actions {#dynamic-outputs__section_yyy_zcm_mjb}

A data gathering action collects data to be used by other actions. Data gathering actions are intended to be called from dynamic inputs rather than be added directly to a flow. Data gathering actions typically collect data from third-party systems using a REST call. All data gathering actions must meet these requirements and constraints.

* The action has a [script step](https://www.servicenow.com/docs/J95FJNARmYq5QLScaSliRA "Add custom JavaScript to execute within a reusable action. While most core actions and steps fit common use cases, you can build a Script step to execute behavior not satisfied by the core steps.") that contains an output variable of type JSON.
* The action has an output named output of type JSON whose value is derived from the script step's JSON output variable.  
  Note:  
  The action can have multiple outputs but can only have one of type JSON.
* The script step formats the JSON output to have a property named `data`.
* The JSON output should not return more than 5000 choice options, field template values, or array element items when the data is intended for a dynamic choice or a dynamic template input.  
  Note:  
  Dynamic choice and dynamic template inputs can only display up to 5000 choice options or 5000 template values from the JSON output.
* The action waits for up to 300 seconds (5 minutes) to gather data before it times out.  
  Note:  
  To change the timeout period for all actions, modify the value of the sn_flow_designer.sync_action_execution_timeout_in_seconds system property.
{#dynamic-outputs__ul_g5h_ly1_chb}

## Dynamic object {#dynamic-outputs__section_tnw_crg_mjb}

A dynamic object is either a complex object or an array of complex objects. Action designers
build the object structure dynamically with a data gathering action rather than hard-coding it.
For more information on building a dynamic object, see [Create a data gathering action
for a dynamic object](https://www.servicenow.com/docs/3uA9WaUwHqymxhyP1W6DiA "Create an action to collect output values. Then, pass the values to a parent action as a dynamic object.").

## General guidelines {#dynamic-outputs__id_bjp_cvb_ptb}

Use dynamic outputs for third-party integrations
:   Use dynamic outputs to
    introspect and fetch
    data from external systems during the flow design. For example, you can specify service endpoints or call actions that interact with specific endpoint APIs. For more information on setting up third-party integrations with Workflow Studio, see [IntegrationHub](https://www.servicenow.com/docs/access?context=integrationhub&version=brazil&pubname=brazil-integrate-applications&ft:locale=en-US).

Note the time that is required to retrieve large amounts of data
:   By default, dynamic outputs have up to 300 seconds to gather data before the system stops them. If your data gathering action needs more time to gather data, set the
    sn_flow_designer.sync_action_execution_timeout_in_seconds system property to a greater value. Avoid long timeout values for interactive flows where an end user is expecting to enter or select a
    value.

Be aware of scripting errors
:   Because all data gathering actions use a script step, potential errors could occur from scripting. Review any scripts that are used to output JSON variables because script errors may prevent the outputs from receiving the
    JSON values that they need. When a dynamic output scripting error occurs, the following warning message may appear.Figure 1. Message that is displayed for scripting error ![Dynamic action error message]()
* **[Get started with dynamic outputs](https://www.servicenow.com/docs/96Esk0SpqgZ_YZBDXczUUA#getting-started-dynamic-output)**   
  Create a sample action that builds dynamic outputs for use in a flow.
* **[Create a data gathering action for a dynamic object](https://www.servicenow.com/docs/3uA9WaUwHqymxhyP1W6DiA)**   
  Create an action to collect output values. Then, pass the values to a parent action as a dynamic object.
* **[Dynamic output configuration options](https://www.servicenow.com/docs/HLsSReTqyzjX2sxlSZg6GA)**   
  Use these options to configure your dynamic outputs for a parent action.

