Hear from Salesforce leaders on how to create and deploy Agentforce agents.
Contact Us 1-800-596-4880

Define and Use Data Types in a Flow (Flow Designer)

Each card in a flow requires input data that is of a certain type, and each card outputs data that is of a certain type. As you build your flows, you should specify the data types that your cards require as inputs and produce as outputs. Doing so helps you plan the flows you create, because you know what data type is required by each card in the flow.

A data type explains to Flow Designer the formats and structures of the data that are in inputs and outputs. Flow Designer supports two categories of data type: simple and custom. See these topics for information about these categories:

Procedure

Although there is more than one way to define and use a data type, MuleSoft recommends the method that is used in the tutorial "Create Your First Mule Application with Flow Designer".

  1. In the Project pane, click the plus sign to the right of the heading Data Types.

  2. Define the data type in the New Type dialog.

    Result: The new data type is listed in the Data Types section of the Project pane.

  3. Where you need to use the data type in your flow, follow these steps:

    • To use the data type for the input to a card, open the card, select the Input tab at the top of the card, and select the data type from the Data type drop-down list.

    • To use the data type for the output of a card, open the card, select the Output tab at the top of the card, and select the data type from the Data type drop-down list.