---
sourceDocument: Australia ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/servicenow-platform

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Create an output variable

# Create an output variable {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 Minuten Lesedauer

The Outputs form in the designer contains a variable builder
for creating data structures of objects and arrays.

## Vorbereitungen

Roles required: activity_admin, activity_creator

## Warum und wann dieser Vorgang ausgeführt wird

Elements in this structure are mapped with [Create a parsing rule](https://servicenow-prod.fluidtopics.net/jecuRsCuzIyfFDyPkB_Ehw#t_CreateAParsingRule "Populate output variables defined in a custom activity with payload data returned from an inputs test on an external host or endpoint.") to specific data contained in payloads returned from an endpoint or host. These variables and their values are then made available locally or for reuse in other activities.

## Prozedur

1. Click the + icon in the Outputs column to create a local or output variable.  
   Local variables are only available within an activity and are not visible in
   the data structures displayed in the Custom tab.
   Output variables are available for reuse in other activities, either
   individually or as an entire data structure. When you create a new variable
   of either type, the designer provides a default name of
   Local1 or Output1.
2. Type your new variable name in the field and select a data type.  
   Variable names must be unique within an array or an object. You can assign a
   data type of Encrypted to output variables that
   contain sensitive data. Data protected by encryption is passed to other
   activities or processes encrypted and is never displayed in plain text.
3. To change the name of a variable or any of its attributes, double-click the value, type a new value in the editing field, and then press Enter.  
   The icon to the left of the name reflects the data type of the variable.
4. To reorder the variable list, select a row and then drag the row to its new location.  
   When you select a row to move it, the pointer icon changes to an up/down arrow icon (![Up/down arrow icon.]()).
5. Drag the row into another location.
6. Choose from the following options.
   * To reuse a variable from another activity, drag it from the Custom tab in the palette to the Local or Output heading at the top of the variable list.
   * To copy an entire data structure, drag the parent object or array into the variable list header.

   {#t_CreateAnOutputVariable__choices_mth_dxl_kyb}  
   The designer duplicates the copied data structure in the outputs variable builder.  
   Abbildung : 1. Reuse of data structures
7. To delete a variable, click the delete icon (![]()) in the row.

## Activity designer template outputs {#ariaid-title2}

Output variables contain messages returned from a destination that are available to
other activities in a workflow or internally to the activity.
{#activity-template-outputs__table_hhm_ph4_cr__entry__2}

| Field | Description |
|-|-|
| Variable name | Name of a variable, either Local or Output, that this activity passes. |
| Local | Variable that contains a value used within an activity. For example, use a local variable to identify metadata that is processed within an activity before the final value is exported to an output variable. |
| Output | Variable that contains a value that is passed to other activities in the workflow. |
[Tabelle : 1. Activity designer output fields]

{#activity-template-outputs__table_hhm_ph4_cr}

## Map an output field {#ariaid-title3}

Mapping is configured with parsing rules that allow you to build expressions in the
appropriate data format for the selected payload.

### Vorbereitungen

Role required: activity_admin, activity_creator

### Warum und wann dieser Vorgang ausgeführt wird

When you are finished creating the output data structure, map each variable to the
specific data you want to extract from the target host.

### Prozedur

To map a variable, drag it from the Outputs variable builder and drop it into an empty Variable name field in the Parsing rules section.  
See [create a parsing rule](https://servicenow-prod.fluidtopics.net/jecuRsCuzIyfFDyPkB_Ehw#t_CreateAParsingRule "Populate output variables defined in a custom activity with payload data returned from an inputs test on an external host or endpoint.") for
instructions on configuring parsing for output variables.  

