Cloud Software Group, Inc. EBX®
Data Exchange (New) Documentation > User Guide > Exporting data
Navigation modeData Exchange (New) Documentation > User Guide > Exporting data

Exporting labels and related data

Overview

Instructional details for some of the add-on's export options and example output are included in the following sections:

Exporting labels

When exported data includes a primary key, foreign key, or enumeration, the resulting file might be difficult to parse. The values contained in these fields are often numbers or other identifiers, and make it challenging to extract meaningful information. To alleviate this, the add-on allows you to export the labels for these fields. Note, that labels for these fields must be defined in the data model and can only be set by someone with administrative access to edit the data model. See Setting labels below for high-level information on where to set the labels.

To include labels in an exported file:

  1. Initiate the export process.

    Label export options are available at the dataset and table levels for CSV and Excel, but only the table level for SQL. This example demonstrates exporting from one table to Excel and including labels from a foreign key. With the exception of the following differences, the process and results are similar for the other export formats and label options:

    • The option to export static enumerations is only available for Excel export.

    • When exporting at the dataset level: each sheet in an Excel file will contain data for one table included in the export.

    • If you do not have permission to view a field it is not included in the export.

    See Exporting a table or Exporting multiple tables for detailed instructions on exporting.

  2. Choose the types of labels to export by selecting the corresponding options.

    Note

    You cannot use a transformation function on a field that is a static enumeration.

    /export-labels-2.png

  3. Optionally, change mappings.

    As shown in the example below, you can find the label mappings in an expandable section in the source table.

    /export-labels-1.png

  4. Complete the export process.

    The following image shows the file resulting from the export with the label column (Company - Label) included:

    /export-labels-ex.png

Setting labels

If you have administrative access to edit a data model in the Data Model Assistant (DMA), you can determine the exported labels for each field type by adding a label in the following locations:

You can export data from related tables when exporting to Excel or CSV formats. You have the option of including data from related tables up to 5 levels from the main source table (the table where you run the export service). Only data related to records selected for export in the export's source table are exported.

By default, data from dataspace snapshots is not included when exporting related data. This helps to prevent excessively large exports. However, you can enable export of snapshots by selecting the Export data from snapshots option.

When exporting to:

To export related data:

  1. Initiate the export process for CSV or Excel.

    See Exporting a table for detailed instructions on exporting.

    Note

    Related data export options are only available at the table level.

  2. Include data from related tables:

    1. Select the type related data to export using the following options:

      • Referred to by the source table

      • That references the source table

    2. Set the related data's scope using the following options:

      • Use the Select all tables up to and the Level menu to determine how much data to include. See Table levels example for more details on how level selection impacts exported data.

      • Select the Export data from snapshots if you want to include all related data contained in dataspace snapshots.

      • If you only want to include data from specific tables, tic their corresponding boxes.

      /export-related-tables-2.png

  3. Optionally, change or update mappings.

  4. Complete the export process.

Table levels example

The following image and list include a data model diagram and export results to highlight the behavior of exporting related data:

/export-related-tables-1.png

1) Source table

The export service was run from the Customer table.

2) Referenced by the source table

The Customer table holds a FK to the Product table, but not directly to Price, or Currency. The related data from Price was included in the export because it was within the number of levels specified (2), whereas Currency was not.

3) Tables that reference the source table

Data from the Region table, which has a direct FK to Customer, and Tax table was included in the export.

4) Results

The reference sheet includes metadata about all related tables included in the export.