Preference conditions
Power advanced conditional logic in your preferences.
Preference conditions are Knock condition models that are evaluated when computing the current state of your preferences during workflow execution.
Overview
Typically, a PreferenceSet
evaluates to boolean values representing if your recipient has opted in or out of receiving notifications on a given channel, workflow, or category.
With preference conditions you can add additional custom expressions to a PreferenceSet
, where the notification is only sent if all preferences (including the preference condition statement) evaluate to true
.
⚠️
Batch processing limitation. When using a batch function, preference conditions will only be evaluated against the first item in the batch.
Below is an example of a workflow preference that has conditions applied to determine if the preference is true
or false
:
Set preference conditions for a user
Here's how to set preference conditions for a user.
👩💻
See an example. Follow this link to see an example of how to set preferences with conditions.