Create Type From Data
  • 22 Sep 2021
  • 1 Minute to read
  • Dark
    Light

Create Type From Data

  • Dark
    Light

Article Summary

Overview

In some instances, a user may wish to recreate or track data from a specific Flow. To aid in this, users may utilize the Create Type From Data feature. Create Type From Data is a function found in the Data Definitions window that compiles the configured Data Definitions and converts them into a singular Defined Data Structure

The following document discusses how to use the Create Type From Data function to convert two String [Text] definitions, into a Defined Data Structure. 


Example

The example below details how to Create a Flow Structure Data Type called "Company" that is based on pre-existing String data. 
  1. Navigate to a Designer Project and select CREATE FLOW from the top Action bar.
    1. Select Flow, provide a Name, then click CREATE.
  2. From the Flow Designer, click the SETUP INPUT DATA button from under the top Action bar, then click DEFINE.
  3.  Create two String [Text] Type Data Definitions; one with the Name "EmployeeName" and the other called "EmployeeEmail."
    1. Define a Constant INPUT for each Defitnition. 
    2. Save the Data Definition, then close via X.
  4. Connect a Show Form step from the FAVORITE STEPS category in the Toolbox tab, to the Start step. 
  5. Navigate to the Show Form step's Properties tab and click the PICK OR CREATE FORM button. 
    1. Select CREATE, Form, provide a Name, and then CREATE once more.
  6. Design a Form containing two Text Box components, two Labels, and a submission Button.
    These Text Boxes serve as recipients for the Employee Name and Email data respectively.
  7. Save the Form, then close it.
  8. From the Show Form step's Properties tab, map EmployeeEmail and EmployeeName to their respective INPUTS.
  9. From the FAVORITE STEPS category of the Toolbox tab, attach a Create Data step to the Show Form step, as well as the End step.
  10. Navigate to the Properties tab for the Create Data step and under DATA > Data To Create select SHOW EDITOR. 
  11. From the Data Definitions window, select the Create Type From Data link.
  12. Provide the Data Name, "Company", then click CREATE.
    1. Select Edit Type.
    2. Define two String [Text] Types for EmployeeEmail and EmployeeName, then click SAVE.
    3. Under Input, click Edit, then change the mapping for Company to Build Data; Select From Flow Employee Email and Employee Name to their corresponding Input. 
    4. CLOSE twice to leave the Data Definitions window. 
  13. Save the Flow, then if desired, close via X.


Debug

  1. From the Flow Designer, select the Debug link from the top Action bar.
  2. Click START DEBUGGING. 
  3. Fill out the Form, or Submit the previously configured values. 
  4. After the Flow runs, select the Create Data step, then View Output Data
    Verify that the Data being Output is a Flow Structure called Company that contains the EmployeeEmail and EmployeeName Properties. 


Was this article helpful?