Use Case: Automating Email Subscription for Customers Placing Orders
Let’s say, you want to subscribe customers who place orders on your portal to your email campaigns. To do so, you need to set up a workflow that defines the consent forEmail Subscription as “Yes” when a customer performs a Place order event from their streaming source.
In order to achieve this, in the mapping screen, create a custom consent field for Email Subscription. Then, add a custom transformer with a combination of directives as shown in the image below.

As a result, the system will:
- Clear any existing value in the
Email Subscriptionfield and set it to “Null”. - When a customer performs the
Placed orderevent, it sets theEmail Subscriptionfield to “Yes”. Otherwise, retains the existing value, which is “Null”.