Skip to main content
Learning
Output data

note

Output data applies to Teams Triggers and Teams Activities

Output data is the information a Trigger or Activity produces.

  • For manual Triggers and Activities, you must define the Output data because it depends on what the person is expected to provide.
  • For automated Triggers and Activities, the Output data is fixed and cannot be changed.

You must specify Output data for all manual Triggers and Activities.
To add or edit Output data, open your approval in the Flow Builder (see here).
Click the Activity or Trigger, then expand the Output data section.


image

Here’s how to add and manage Output data.

Adding outputs

To add an output, click +Add in the Output data section to open the Edit output dialog.


image

Enter a Name that clearly describes the output data. For tips on how to name your data, click here.
You can also add an optional Description to explain the purpose of the data.
Select the appropriate Datatype and whether a single value or array of values.
For help on choosing the right Datatype, click here.


tip

Adding a Description to your outputs helps others understand their purpose. The description also appears in the Formula builder as a reminder of what the data represents.

Presetting outputs

After you add outputs, you can give them an initial value. This is called presetting. Presets work only for Activities, not for Triggers.
To set a preset value, open the Edit output dialog and select the Preset tab.


image

For more information, see Output Preset Formulas.

Validating outputs

After adding an output, define a validation formula. This controls what values the output can accept. For example, you can require a value, limit allowed values, or apply conditional rules.
To set a validation formula, open the Edit output dialog and go to the Validation tab.


image

For details, see Validation Logic Formulas.

Updating outputs

To edit an output, hover over it and click to open the Edit output dialog.


image

Here, you can update the Name, Description, and Datatype.


Updating an Output May Cause Errors

Renaming or changing an output's name or datatype can break formulas and cause errors in later steps. These errors will appear when you run Check or Finalize, and you'll need to fix them.

If you made the change on purpose, no problem. If it was a mistake, use Undo to revert it.

Rearranging outputs

If you need to change the order of your outputs, just click and hold the drag handle, then move the output to where you want it and release.

Removing outputs

To remove an output, hover over it and click the trash can icon.


Removing an Output May Cause Errors

Removing an output used in later steps can break formulas. Errors will show up when you run Check or Finalize, and you'll need to fix them.

If you removed it on purpose, that's okay. If it was a mistake, use Undo to restore it.