Data extraction (file) extraction-file

You can extract data from a workflow table in an external file using the Data extraction (file) activity.

CAUTION
This activity must always have an inbound transition which contains the data to be extracted.

To configure data extraction, apply the following steps:

  1. Specify the name of the output file: this name can contain variables, inserted via the personalization button to the right of the field.

  2. Click Edit the file format… to select the data to be extracted.

    The Handle groupings (GROUP BY + HAVING) option adds an extra step to filter the final result of the aggregate, for example on a given purchase order type, customers who have ordered more than 10 times, etc.

  3. If necessary, you can add new columns to the output file, such as computing or processing results for example. To do this, click the Add icon.

    In the additional line, click the Edit expression icon to define the content of the new column.

    You will then access the selection window. Click Advanced selection to choose the process to be applied to the data.

    Choose the desired formula from the list.

You can define a post-process to be executing during the data extraction, allowing you to zip or to encrypt the files. To do this, the desired command must be added in the Script tab of the activity.

For more on this, refer to this section: Zipping or encrypting a file

List of aggregate functions list-of-aggregate-functions

The following is a list of available aggregate functions:

  • Count to count all non-null values of the field to be aggregated, including duplicate values (of the aggregated field),

    Distinct to count the total number of different and non-null values of the field to aggregate (duplicate values are excluded before the calculation),

  • Sum to calculate the sum of values of a numerical field,

  • Minimum value to calculate the minimum values of a field (numerical or otherwise),

  • Maximum value to calculate the maximum values of a field (numerical or otherwise),

  • Average to calculate the average of the values of a numerical field.

recommendation-more-help
601d79c3-e613-4db3-889a-ae959cd9e3e1