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


---

# Get started with Dynamic Flow and Get Flow Outputs

# Get started with Dynamic Flow and Get Flow Outputs {#ariaid-title1}

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

Create a sample flow that dynamically calls subflows for provisioning cloud
services.

## Before you begin

Role required: flow_designer or admin

## About this task

To understand how to use the Dynamic Flow and Get Flow Outputs flow logic together, the flow that you create in this task dynamically runs subflows that are related to provisioning cloud services. This flow does the following:  
1. Triggers when a Cloud Instance Provisioning Request record is created.
2. Calls the appropriate subflow to create a Cloud Instance record.
3. Gets an output from the dynamically called subflow and updates the Cloud Instance Provisioning Request record with the output's value.
{#getting-started-dynamic-flow-get-flow-outputs__ol_rnd_d3c_ccb}

## Procedure

1. Navigate to AllSystem ApplicationsStudio.
2. On the Select Application screen, click Create Application.
3. On the Guided App Creator welcome screen, click Let's get started.
4. In the Name field, enter <kbd class="ph userinput">Cloud Instance Provisioning</kbd> and then click Create.
5. In the Roles field, enter <kbd class="ph userinput">flow_designer</kbd> or <kbd class="ph userinput">admin</kbd> and then click Continue.
6. From the list of app formats, select Classic and then click Continue.
7. Select Create new tableCreate table from scratchContinue to create two new tables for your application.  
   * Add the following fields for the first table and name the table <kbd class="ph userinput">Cloud Instance</kbd>.{#getting-started-dynamic-flow-get-flow-outputs__table_upx_rtj_qjb__entry__3}

     | Field label | Field type | Reference |
     |-|-|-|
     | Owner | Reference | User \[sys_user\] |
     | Instance Type | String | None |
     | Instance URL | URL | None |
     | Build Status | String | None |
     [ ]

     {#getting-started-dynamic-flow-get-flow-outputs__table_upx_rtj_qjb}
   * Add the following fields for the second table and name the table <kbd class="ph userinput">Cloud Instance Provisioning Request</kbd>.{#getting-started-dynamic-flow-get-flow-outputs__table_npd_fn5_mjb__entry__3}

     | Field label | Field type | Reference |
     |-|-|-|
     | Requested Instance Type | String | None |
     | Requested by | Reference | User \[sys_user\] |
     | Approval Status | String | None |
     | Approved Instance | URL | None |
     [ ]

     {#getting-started-dynamic-flow-get-flow-outputs__table_npd_fn5_mjb}
   {#getting-started-dynamic-flow-get-flow-outputs__ul_qzz_ptj_qjb}
8. After creating both tables, click Done with tables.
9. Select StartCreateDone with apps to finish creating your application.
{#getting-started-dynamic-flow-get-flow-outputs__steps_zdq_d35_mjb}

## Create a subflow template {#ariaid-title2}

Create a sample subflow template for provisioning cloud services.

### Before you begin

Role required: flow_designer or admin

### Procedure

1. Under Business logic, process automation, and integrations, select Go to Flow Designer.
2. In the Workflow Studio landing page main header, select NewNew Subflow.
3. On the Subflow Properties screen, enter <kbd class="ph userinput">TEMPLATE: Create Cloud Instance Record</kbd> in the Name field and then select Submit.
4. Under Inputs \& Outputs, select the plus icon (![Plus icon]()) to create two inputs for your subflow template.  
   {#get-started-dynamic-flow-create-subflow-template__table_rn2_sr5_mjb__entry__2}

   | Label | Type |
   |-|-|
   | Requested by | Reference.User |
   | Requested Instance Type | String |
   [ ]

   {#get-started-dynamic-flow-create-subflow-template__table_rn2_sr5_mjb}
5. Select the plus icon (![Plus icon]()) to create one output for your subflow template.  
   {#get-started-dynamic-flow-create-subflow-template__table_a1w_d2v_mjb__entry__2}

   | Label | Type |
   |-|-|
   | Instance URL | URL |
   [ ]

   {#get-started-dynamic-flow-create-subflow-template__table_a1w_d2v_mjb}
6. Under your output, select Done.
7. Select the add action, flow logic, or subflow to end of flow icon (![Add action, flow logic, or subflow to end of flow icon]()) and then select Action.
8. From the list of ServiceNow Core actions, select Log.
9. In the data panel, drag the data pills for the `Requested by` and `Requested Instance Type` inputs you created earlier, and drop both of the pills into the Message field.
10. In the Subflow header, select Save and then select Publish to publish your subflow template.
{#get-started-dynamic-flow-create-subflow-template__steps_d5s_tdy_nkb}

## Create a subflow for Jira cloud instance provisioning requests {#ariaid-title3}

Create a sample subflow for provisioning cloud services from Jira.

### Before you begin

Role required: flow_designer or admin

### Procedure

1. In the Subflow header, select the more actions icon (![More actions icon]()) and select Copy subflow.
2. On the Copy Subflow screen, enter <kbd class="ph userinput">Create Cloud Instance Record - Jira</kbd> in the New Subflow Name field, and then select Copy.
3. Under the Log action, add a [Create Record
   action](https://servicenow-prod.fluidtopics.net/OEgIPe9NKzDNw5yTUs5tMg "Creates a record on any table. You can dynamically add and configure fields for the record.").
4. In the Table Name field, select <kbd class="ph userinput">Cloud Instance</kbd> and then fill in the following fields.  
   {#get-started-dynamic-flow-create-jira-subflow__table_vzm_mfv_mjb__entry__2}

   | Field | Value |
   |-|-|
   | Owner | Select the data pill picker (![Data pill picker]()) and select Subflow - InputsRequested by. |
   | Instance Type | Select the data pill picker (![Data pill picker]()) and select Subflow - InputsRequested Instance Type. |
   | Instance URL | Enter <kbd class="ph userinput">https://mycompany-</kbd>. Then, select the data pill picker (![Data pill picker]()) and select Subflow - InputsRequested byName. Finally, enter <kbd class="ph userinput">.atlassian.net</kbd> |
   | Build Status | Enter <kbd class="ph userinput">In Progress</kbd>. |
   [ ]

   {#get-started-dynamic-flow-create-jira-subflow__table_vzm_mfv_mjb}
5. Under the create record action, select Add an Action, Flow Logic, or SubflowFlow LogicAssign Subflow Outputs.
6. Select the plus icon to add an output.
7. For Name, select Instance URL.
8. For Data, select the data pill picker (![Data pill picker]()) and then 2 - Create Record -Cloud Instance RecordInstance URL
9. In the Subflow header, select Save and then Publish to publish the subflow.
{#get-started-dynamic-flow-create-jira-subflow__steps_s12_g5f_4kb}

## Create a subflow for Salesforce cloud instance provisioning
requests {#ariaid-title4}

Create a sample subflow for provisioning cloud services from Salesforce.

### Before you begin

Role required: flow_designer or admin

### Procedure

1. In the Subflow header, select the more actions icon (![More actions icon]()) and select Copy subflow.
2. On the Copy Subflow screen, enter <kbd class="ph userinput">Create Cloud Instance Record - Salesforce</kbd> in the New Subflow Name field, and then select Copy.
3. Expand the Create Cloud Instance Record action and replace the <kbd class="ph userinput">.atlassian.net</kbd> value for the Instance URL field with <kbd class="ph userinput">.salesforce.com</kbd>
4. In the Subflow header, select Save, accept the data change warning message, and then Publish to publish the subflow.
{#get-started-dynamic-flow-create-salesforce-subflow__steps_jwl_tyf_4kb}

## Create a flow that runs your subflows dynamically {#ariaid-title5}

Create a sample flow to run your provisioning cloud services subflows.

### Before you begin

Role required: flow_designer or admin

### Procedure

1. Under the Workflow Studio header, select the Create flow, subflow, or action(![Create flow, subflow, or action icon]()) icon and select Flow.
2. On the Flow Properties screen, enter <kbd class="ph userinput">Process Cloud Instance Provisioning Request</kbd> in the Name field, and then select Submit.
3. Under Trigger, select the plus icon ![Plus icon]()) to add a trigger to your flow, and then fill out the following fields.  
   {#get-started-dynamic-flow-run-subflow-dynamically__table_kfq_cqm_4kb__entry__2}

   | Field | Value |
   |-|-|
   | Trigger | Select Created. |
   | Table | Enter Cloud Instance Provisioning Request \[x_cloud_instance_p_cloud_instance_provisioning_request\]. |
   [ ]

   {#get-started-dynamic-flow-run-subflow-dynamically__table_kfq_cqm_4kb}
4. Under Actions, select the plus icon ![Plus icon]()and then select Flow LogicDynamic Flow.
5. Fill in the following fields.  
   {#get-started-dynamic-flow-run-subflow-dynamically__table_agg_drm_4kb__entry__2}

   | Field | Value |
   |-|-|
   | Flow Template | Select TEMPLATE: Create Cloud Instance Record |
   | Flow | Enter <kbd class="ph userinput">Create Cloud Instance Record - </kbd> and then select the data pill picker (![Data pill picker]()) and select Trigger - Record CreatedCloud Instance Provisioning Request RecordRequested Instance Type. |
   | Wait for completion | Enable this option to run your subflow dynamically first before other actions in your flow occur. |
   | Requested by | Select the data pill picker (![Data pill picker]()) and select Trigger - Record CreatedCloud Instance Provisioning Request RecordRequested by. |
   | Requested Instance Type | Select the data pill picker (![Data pill picker]()) and select Trigger - Record CreatedCloud Instance Provisioning Request RecordRequested Instance Type. |
   [ ]

   {#get-started-dynamic-flow-run-subflow-dynamically__table_agg_drm_4kb}
6. Under your Dynamic Flow flow logic, add the Get Flow Outputs flow logic, and then fill in the following fields.
7. For Flow Template, select TEMPLATE: Create Cloud Instance Record
8. For Context, select the data pill picker (![Data pill picker]()) and select 1 - Dynamic Flow -Context.
9. Under your Get Flow Outputs flow logic, select the plus icon (![Plus icon]()) and then select ActionUpdate Record to add an [Update Record
   action](https://servicenow-prod.fluidtopics.net/xdBFIoihwfhID3m3THe6ZQ "Update an existing record in a table. You can dynamically add and configure fields for the record.") to your flow.
10. Fill in the following fields.  
    {#get-started-dynamic-flow-run-subflow-dynamically__table_nw5_1tm_4kb__entry__2}

    | Field |   |
    |-|-|
    | Record | Select the data pill picker (![Data pill picker]()) and select Trigger - Record CreatedCloud Instance Provisioning Request Record. |
    | FieldsApproved Instance | Select the data pill picker (![Data pill picker]()) and select 2 - Get Flow Outputs -Instance URL. |
    | FieldsApproval Status | Enter <kbd class="ph userinput">Approved</kbd>. |
    [ ]

    {#get-started-dynamic-flow-run-subflow-dynamically__table_nw5_1tm_4kb}
11. Select Save.
{#get-started-dynamic-flow-run-subflow-dynamically__steps_rsj_hzf_4kb}

## Test your flow {#ariaid-title6}

Test your sample flow for provisioning cloud services.

### Before you begin

Role required: flow_designer or admin

### Procedure

1. In the Flow header, select Test to test your flow.
2. On the Test Flow screen, select the Create new record (![Create new record icon]()) icon to create a new record.
3. For Requested By, select the Lookup using list icon (![Lookup using list icon]()) and select any user from the list.
4. For Requested Instance Type, enter either <kbd class="ph userinput">Jira</kbd> or <kbd class="ph userinput">Salesforce</kbd>.  
   The value you enter determines which subflow runs dynamically at runtime. Entering <kbd class="ph userinput">Jira</kbd> runs the Create Cloud Instance Record - Jira subflow, and entering <kbd class="ph userinput">Salesforce</kbd> runs the Create Cloud Instance Record - Salesforce.
5. Select Submit.
6. Select Run Test, and when the flow finishes running, select Your test has finished running. View the flow execution details.  
   Your flow runs successfully if the values in the State column for each step in your flow shows Completed and each step's runtime value populates appropriately.
7. Select the tab for your Process Cloud Provisioning Requests flow and close the Test Flow modal.
8. In the Flow header, select Activate to make your flow accessible within the Cloud Instance Provisioning [Application scope](https://www.servicenow.com/docs/access?context=c_ApplicationScope&version=australia&pubname=australia-application-development&ft:locale=en-US).
{#get-started-dynamic-flow-test-flow__steps_whv_ltm_4kb}

### Result

When a user in your instance creates a new record in the Cloud Provisioning Request table, your Process Cloud Provisioning Requests flow runs automatically. This flow dynamically creates the proper Cloud Instance record that is based on the requested instance type. It also generates a cloud instance URL, which populates in the Cloud Instance Provisioning Request record.

*[\>]: and then


