03. Using functions

Before learning how to use functions, we expect you to be familiar with what functions are, how to create and manage keys, and how to create pipelines.

Functions are applied to fields in your pipeline. Their use and modification are performed during the creation or advanced editing of the pipeline.

To use functions in your pipeline, follow the steps below:

Click on "CREATE +" > "PIPELINE" (or "EDIT" > "ADVANCED") and proceed to the step for configuring table and field names:

Click on "FIELDS":

For each field, you will see a small "fx" icon on its left. Click this icon:

A new section will appear below the field in question along with a list. Click on it to view the functions available for your account:

In this list, you will see the name of the function to be applied, a question mark ("?") icon that links to the function tutorial, its category (anonymization, pseudonymization, or transformation), and its description. Select the desired option:

If the chosen function requires parameters (such as a key, for example), you will see the list of required arguments below the selection box. Fill in all the necessary parameters.

When the function parameters (arguments) are filled in, you will see the "SAVE" button at the bottom. If you are satisfied with the function and the selected parameters, click it to save the function to the field, or click "REMOVE" to clear the data you entered.

Once the function is added, the "fx" icon will appear, and the field type will turn green. This indicates that the field has functions applied. Additionally, the configuration of the previously selected function will also have a green background, and a new selection box will appear below the already added function. This new box allows you to add additional functions to create a chain:

If you want to chain more functions, simply repeat steps 5 to 8 for each function in the chain. Remember that a function is only added to the chain after you click "SAVE." Additionally, only the last function in the chain can be edited at a time. This means that in a chain of five functions, if you need to edit the third one, you will have to remove the fourth and fifth, make the changes to the third, and then re-add the fourth and fifth:

If you are satisfied with the applied function or chain of functions, simply click the "fx" icon again to hide the function editor for that field:

You can identify fields with applied functions by the green "fx" icon:

Then, click "NEXT" to proceed with the creation or editing of the pipeline.

Done! Your functions (or function chain) will be applied to your fields every time your pipeline is executed.

After the pipeline is created, you can also view the applied functions as follows:

Access the pipeline on the Kondado platform.

On the pipeline page, click on "DETAILS" at the bottom:

In the pipeline details, under "Objects," click on the one you would like to view:

In the list of fields, you will notice that fields with applied functions will be highlighted in green and have the "fx" icon on the right side of the name in the source:

To view the applied functions, hover over the "fx" icon. You will be informed about the function chain, and if you want to see more details (such as which key is being used), open the advanced editor.