With Synerise you can process transactional data in many different ways. You can prepare advanced analysis or build marketing scenarios basing on them. You can also use transactions as a data set for AI engine.
This use case describes the process of transformation of a .CSV file with transactional data. The transformations performed on the file involve:
- adding missing columns with currency code
- creating eventSalt for the transactions
NOTE: The eventSalt parameter enables to deduplicate transactions when two or more are sent with the same eventSalt and time as the original transaction.
After the transformation, the entries in the file will be imported to Synerise as transaction events.
Prerequisites
- Save the file with transactional data to your computer.
You can find the general requirements for the
.CSVfile format here. Make sure your file contains required columns. If any column is missing, it needs to be added later in the transformation. Values of columns need to meet requirements of the transactional data structure used in Synerise. - Make a copy of the data file and remove rows from the copy until few are left. This copy will be used only as a sample for configuring the transformation.
Click to see a sample CSV file used in this use case
client.email,orderId,paymentInfo.method,products.finalUnitPrice.amount,products.quantity,products.sku,recordedAt,revenue.amount,value.amount,products.name test@test.pl,1234,cash,24,2,10000,2022-05-24T14:15:22Z,50,50,shoes test@test.pl,1234,cash,26,2,20000,2022-05-24T14:15:22Z,50,50,dress
Process
- Prepare a transformation that will transform data from the
.CSVfile. - Prepare a workflow that imports transactions to Synerise.
Create a transformation
In this part of the process, you define the rules of modifying data. The transformation which is the output of this part of the process is used later to automate sending the data.
The sample file is used to configure the transformation and preview its results. With a library of transformation steps, you can modify the file by adding, renaming, and merging columns, as well as editing the values in the rows, and so on.
In this example, we will use the Add Column step to add columns with currency code and the Merge Columns step to create eventSalt for the transactions.
- Go to
Automation Hub > Transformations > New transformation.
- Enter the name of the transformation.
- Click Upload a new file or drag one here.
Add file with sample data
This step allows you to add a data sample. In further steps, you define how the data must be modified. Later, when this transformation is used in the workflow, the system uses the rules created with the sample data as a pattern for modifying actual data.
- Upload the file with the sample data.
- Set Delimiter and provide Quotation mark and Escape character.
- Click Apply.
Result: The editor displays data from the sample.

Add Column
You can use the Add Column step to create a new column to the file, with a defined value. In this example, there are no columns with currency codes in the input file so, following the transactions import requirements, we will add following columns: products.finalUnitPrice.currency, revenue.currency, value.currency. All of them will have the defined value: PLN.
- On the right panel, click Add step.
- From the dropdown list, select Add Column.
- Click the Add Column step.
- In the configuration of the step:
- In the Add Column field, enter the unique column name.
In our case:
products.finalUnitPrice.currency. - Select the Static value option.
The rows in the new column will be filled with the value you define. - As the value, enter
PLN. - Before you save the settings, you can check the preview of the file after changes in the Results tab.
- Confirm by clicking Apply.
- In the Add Column field, enter the unique column name.
In our case:
- Add two more Add Column steps by repeating steps 1-4 with the following changes:
- as the second column, add
revenue.currencyand as the value to insert, enterPLN - as the third column, add
value.currencyand as the value to insert, enterPLN
- as the second column, add

Merge Columns
You can use the Merge Columns step to create a new column based on the values from other columns and to define the separator between the merged values. In this example, we want to add the eventSalt parameter to the transactions using this step. This parameter enables you to deduplicate transactions when two or more are sent with the same eventSalt and time as the original transaction. In our case, we will build this parameter by merging values of three columns: orderId, client.email, and recordedAt. We will add the - separator between the values.
TIP: We recommend to always use eventSalt parameter while importing transactional data.
- On the right panel, click Add step.
- From the dropdown list, select Merge Columns.
- Click the Merge Columns step.
- In the configuration of the step:
- Select the columns to be merged in this order: orderId, client.email, and recordedAt.
- In the New column name field, enter
eventSalt. - In the Separator field, enter
-.
- Before you save the settings, you can check the preview of the file after changes in the Results tab.
- Confirm the settings by clicking Apply.

Preview and save the transformation
- Preview the results in the Output tab.
- In the upper right corner, click Save.
Result:
The transformation configuration
After the transformation is saved, you can use it in the Data Transformation Studio node while preparing a workflow that imports the files.
Prepare a workflow
The scenario for this use case involves a one-time transformation of a file uploaded from the user's local storage. The transformed data will be imported to Synerise as transaction events.
- Go to
Automation Hub > Workflows > New workflow.
- Enter the name of the workflow.
Define the launch date
- As the trigger node, add Scheduled Run.
- In the configuration of the node:
- Select the Run once option.
- Select Immediately.

The configuration of the Scheduled Run node - Confirm by clicking Apply.
Select file to import
- Add a Local File node.
- In the configuration of the node:
- Upload the file in which you want to perform the transformation.

The configuration of the Local File node - Confirm by clicking Apply.
- Upload the file in which you want to perform the transformation.
Select the transformation
- Add a Data Transformation Studio node.
- In the configuration of the node, keep the default From workflow context option.
In the editor, click Templates library:
- Select the transformation you have created before.
- Click Use template.

The configuration of the Data Transformation Studio node - Confirm by clicking Apply.
TIP: You can also create a transformation directly in the Data Transformation Studio node instead of selecting a template.
Import transactions
- Add the Import Transactions node.
- Confirm by clicking Apply.
Add the finishing node
- Add the End node.
- In the upper right corner, click Save & Run.
Result:
The workflow configuration
The imported transaction events will be visible in the customers' profiles.

TIP: This use case concerns one-time import of transaction events from the local storage. However, you can simply modify the flow and run import cyclically from external resource. Learn more how to set up the configuration of importing data from external resource at the following links: import from SFTP, import from HTTPS.
Check the use case set up on the Synerise Demo workspace
You can also check the transformation and the workflow configuration directly in Synerise Demo workspace.
If you’re our partner or client, you already have automatic access to the Synerise Demo workspace (1590), where you can explore all the configured elements of this use case and copy them to your workspace.
If you’re not a partner or client yet, we encourage you to fill out the contact form to schedule a meeting with our representatives. They’ll be happy to show you how our demo works and discuss how you can apply this use case in your business.
Generated events
This use case generates approximately 8 events per workflow execution:
automation.clientStartPath (~1), automation.clientPathStep (~3), automation.clientEndPath (~1), transaction.charge (~1), product.buy (~2).