Fetching Data to display in a CSV Editor
- 12 Aug 2022
- 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 12 Aug 2022
- 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.
Prerequisite
Create a table integration with the dbo.entity_acount with the database LOCAL CONNECTION. Refer to Integrate with Database Table.
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 a 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 top action panel. Then 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 Get all from dbo_entity_account step. Select Add to add this element to the flow.
- 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 the 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?