Fetching Data to display in a CSV Editor
- 14 Sep 2021
- 1 Minute to read
- Print
- DarkLight
This documentation version is deprecated, please click here for the latest version.
Fetching Data to display in a CSV Editor
- Updated on 14 Sep 2021
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Overview
Database Entities represent external databases that can be integrated with a Flow and then displayed on a CSV file.
Example
In this example, fetch data from the database and place it into a CSV file. Next, the data from the database will display on a Form using CSV editor step. This process can be assembled in two steps in the Flow Designer.
- Begin in a Designer Folder and select CREATE FLOW in the bottom Action Panel.
- Select Default Flow and choose CREATE.
- Name the Flow and select CREATE again to proceed to the Flow Designer.
- In the Flow Designer, navigate to Integrations > My Integrations > Database > Accounts(Database) > dbo_entity_account (Table) category and select the Get all from dbo_entity_account step.
- Select Add to add this element to the Flow.
- To set up this table, please learn more in the Alternate Access Pattern For Table Integrations article.
- In order to convert the data from the database to a CSV file, set the Return Data Option property to CSV File and choose to limit the count to a constant if needed.
- After the Return Data Option is selected on the Get All from entity_account step, add a Show Form step to create a Form to display the data in CSV form.
- The Form uses a CSV Editor component to display the specified data as a CSV file.
- Name this component CSVEditor and choose Optional for the Outcome Scenario.
- This Form also has a Button to close the Form and continue the Flow.
- Save and close the Form Designer.
- Back in the Flow Designer, set the input data on the Form.
- With the Form selected, in the Properties panel under Inputs > CSVEditor, choose entity_account_result.
- Connect the remaining outcome paths to the End step.
Debug
- Select Debug in the top action panel of the Flow Designer.
- When the Flow runs, the Form opens and shows the CSV Editor component displays data from the accounts table as designed.
- Select Done on the Form to finish the Flow.
Was this article helpful?