Function Creation Process

Every function object has the following parameters:

  • Name: This is the value that will appear in the selection in a Tag configuration. Here, you should use a descriptive name.

  • ID: This technical reference can explicitly reference a function, as this ID is unique per DCP.

  • Description: Feel free to describe your Function to better understand the motivation to this application later.

  • Javascript: This is the actual function code that you will define

As a function is referenced in a tag to process and return a value, you must define an input and output value. Use the following basic syntax, as any function must return a value.

Transformation Functions

Any transformation function that runs server-side can fully support async features like `await` and `promise`.

Hence, if you intend to use async features, you must always declare the code to be async in the first line of code.

Workaround for multiple arguments

If you need multiple input arguments, a possible workaround is to use a delimiter to concatenate the different variables and then split the information within the function.

Last updated

Was this helpful?