Create an output variable
- Click the + icon in the Outputscolumn to create a local or output variable.Local variables are only available within an activity and are not visible inthe data structures displayed in the Custom tab.Output variables are available for reuse in other activities, eitherindividually or as an entire data structure. When you create a new variableof either type, the designer provides a default name of Local1 or Output1 .
- 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 adata type of Encrypted to output variables thatcontain sensitive data. Data protected by encryption is passed to otheractivities or processes encrypted and is never displayed in plain text.
- 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.
- 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/downarrow icon ( ).
- https://docs.servicenow.com/bundle/london-servicenow-platform/page/administer/orchestration-activity-designer/image/MoveVariable.png
- Drag and drop the row into another location.
- To reuse a variable from another activity, drag it from the Custom tab in the palette and drop it onto 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. The designer duplicates the copied data structure in the outputs variable builder. Figure 1. Reuse of data structures
- https://docs.servicenow.com/bundle/london-servicenow-platform/page/administer/orchestration-activity-designer/image/OutputsReuseVariable.png
- To delete a variable, click the delete icon ( ) in the row.
- https://docs.servicenow.com/bundle/london-servicenow-platform/page/administer/orchestration-activity-designer/image/DeleteVar.png