Custom Function Creation Methods
Create a DSR or General custom function from Integrations, the Custom Functions library, or your repository.
This guide walks through several ways to create custom functions.
Repository authoring
This article covers dashboard creation. Repository authoring lets you restrict allowed hosts and disable third-party imports in the manifest.
Before you begin
You will need:
- Access to Developer Tools → Custom Functions in the Admin Dashboard
- A single-tenant Sombra gateway
- Credentials for anything your function calls, ready to paste in as environment variables
There are three ways to add a new custom function: from the Integrations page (recommended for DSR functions), the Custom Functions page, and remotely from your repo.
Integrations
From Integrations
Note on Custom Function Creation Via Integrations
Note: This path is for creating DSR custom functions. If you are creating a non-DSR related custom function, syncing inbound to Preference Store, for example, use the instructions for creating from Custom Functions UI or remote.
- Go to Integrations → Add Integrations
- Search for "Custom Function" integration, and select.

- On the modal, select a title, owner, and Sombra. Note: Custom Functions are only available for customers with Single Tenant Sombra. Click Add

- On the Integration you have created, click "Create custom function". This will open the Custom Function Editor.

- Write your function, including a name and description, and test it. Then select Save and activate to make the version active.
Custom Functions
- In the Admin Dashboard, go to Developer Tools → Custom Functions and select New function.
- In Create a custom function, choose General or DSR, then continue. DSR functions have dedicated tests for pre-flight enrichers and processing. General functions can be used for other purposes, such as custom inbound Preference Store syncs.
- For a DSR function, the dialog takes you to the Integrations catalog. Follow the steps in Integrations to create the Custom Function integration first.
- In the editor, fill in Details (name, description, owners) and write your code. Environment variables and secrets are set in Environment Variables. Run a test, then select Save and activate to make the version active.
Create and push from your repo or CI
Write Custom Functions in your own repository when you want git review and CI deploys. Transcend never reads your repo.
- Under Developer Tools → API Keys, create a key with View Custom Functions and Manage Custom Functions. Store your Sombra internal key alongside it.
- Add
@transcend-io/cliand atranscend-functions.ymlmanifest to the repository. - Push with
transcend custom-functions push, or add the custom-functions-manager GitHub Action to CI.
