---
sourceDocument: Australia Build workflows
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/build-workflows

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Build workflows

ft:clusterId :

    - crworkflow

bundleId :

    - crworkflow

workflow :

    - Creator


---

# Create a data gathering action for a dynamic object

# Create a data gathering action for a dynamic object {#ariaid-title1}

* Release version: Australia
* 
* Updated March 12, 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 minutes to read

Create an action to collect output values. Then, pass the values to a parent action
as a dynamic object.

## Before you begin

Role required: action_designer or admin  
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=australia&pubname=australia-integrate-applications&ft:locale=en-US).

## About this task

These steps allow you to create a generic data gathering action for a dynamic output. To see working examples of data gathering actions for dynamic outputs, see [Get started with dynamic outputs](https://servicenow-prod.fluidtopics.net/WfVizoi4nSw5gQ_RszaHQA#getting-started-dynamic-output "Create a sample action that builds dynamic outputs for use in a flow.").

## Procedure

1. Navigate to AllProcess AutomationWorkflow Studio.
2. On the homepage, select Actions.
3. Select NewNew Action.
4. In the Name field, enter a name for your action, choose the proper Application scope, and then select Submit.
5. In the Action Outline, select the add a new step icon (![Add a new step icon]()) under Inputs and select the REST step.  
   Configure your REST step to get data from the proper Base URL and Resource Path with any applicable Query Parameters for the HTTP Method <kbd class="ph userinput">GET</kbd>. For more information on using the REST step in Integration Hub, see [REST step](https://servicenow-prod.fluidtopics.net/~GkzH8e26WHvxHLTGNG7Gg "Send an outbound REST web service request to an external system.") and [REST in IntegrationHub](https://developer.servicenow.com/app.do#!/training/article/app_store_learnv2_rest_paris_rest_in_integrationhub/app_store_learnv2_rest_paris_rest_in_integrationhub_objectives?v=paris).
6. In the Action Outline, select the add a new step icon (![Add a new step icon]()) under your REST step and select the Script step.  
   This script step must transform the response from the REST step's Response Body into a format that defines the schema of a dynamic object output for a parent action. Your script step must:
   * Have a single JSON output variable. The script step can have other output variables, but only one must be of type JSON.
   * Format the JSON output variable so that it contains a property named `data`. For a complex object output, your `data` property must have a format similar to the following example:

         {
                data: {
                    type: "object",              
                    //Required

                    children: [                  
                    //Required - This is a collection of field definitions

                        {
                            name: "Name 1",      
                            //Required - Unique name

                            label: "Label 1",    
                            //Required - Display name

                            type: "string"       
                            //Required - Supported field type (See the Note below)

                        },

                        {
                            name: "Name 2",
                            label: "Label 2",
                            type: "string"
                        }
                    ]
                }
            }

     For a complex object array output, your `data` property must have a format similar to the following example:

         {
                data: {
                    type: "object",                          
                    //Required

                    attributes: { child_type: "object" }     
                    //Required - Indicates that the array's children are of type object

                    children: [                              
                    //Required - This is a collection of field definitions

                        {
                            name: "Name 1",                  
                            //Required - Unique name

                            label: "Label 1",                
                            //Required - Display name

                            type: "string"                   
                            //Required - Supported field type (See the Note below)
                        },

                        {
                            name: "Name 2",
                            label: "Label 2",
                            type: "string"
                        }
                    ]
                }
            }

     Note:  
     Supported [action data types](https://servicenow-prod.fluidtopics.net/Ct3dsJ0IiWIcbamXVRVy2g "Actions and subflows use variables to store input and output data. The variable data type determines what kind of data it stores and its advanced configuration options.") for the `type` property include:
     * `string`
     * `integer`
     * `datetime`
     * `choice`
     * `boolean`
     * `object`
     * `array.string`
     * `array.integer`
     * `array.datetime`
     * `array.choice`
     * `array.boolean`
     * `array.object`
     {#create-data-gathering-action-dynamic-object__ul_oql_crm_mjb}
   {#create-data-gathering-action-dynamic-object__ul_hdf_plg_mjb}
7. In the Action Outline, select Outputs.
   1. Create an output of type Dynamic Output.  
      Note:  
      If you don't see Dynamic Outputs as a data type option, then you're missing an Integration Hub subscription.
   2. In the Dynamic Options, select a data gathering action for the Action option.  
      For examples of dynamic output data gathering actions, see [Get started with dynamic outputs](https://servicenow-prod.fluidtopics.net/WfVizoi4nSw5gQ_RszaHQA#getting-started-dynamic-output "Create a sample action that builds dynamic outputs for use in a flow.").
   3. **Optional:** If needed set the Depends On Another input option, and select the input.

   {#create-data-gathering-action-dynamic-object__substeps_yhk_3cr_ccc}  
   Create an outputs of type Dynamic Object.
8. Select Save and [test the action](https://servicenow-prod.fluidtopics.net/RkJbg1UGUC3YJAc2dyKZOQ "Test an action before publishing it for other users.").  
   In the execution details, your data gathering action runs successfully if the runtime value for `output` contains the `data` property in the proper format.
9. Select Publish to make the action available to other flows or actions within the same application scope.  

   You can now use your data gathering action to populate the schema values for a dynamic object in a parent action.
{#create-data-gathering-action-dynamic-object__steps_bfz_nlf_mjb}
**Related tasks**   

* [Get started with dynamic outputs](https://servicenow-prod.fluidtopics.net/WfVizoi4nSw5gQ_RszaHQA#getting-started-dynamic-output "Create a sample action that builds dynamic outputs for use in a flow.")  
**Related reference**   

* [Dynamic output configuration options](https://servicenow-prod.fluidtopics.net/BM5b26NvDJB6k0UAn1HMLQ "Use these options to configure your dynamic outputs for a parent action.")

*[\>]: and then


