@NuthanSa1 To personalize if-else conditions for an AJO API Trigger Campaign email template with contextual payload variables (such as {{context.make}}
), you should use Journey Optimizer's supported syntax. For API-triggered campaigns, you access contextual payload data with {{context.<fieldName>}}
.
Try this:
sample payload
{
"context": {
"make": "a",
"model": "b"
}
}
{%#if contains(context.make, "a") %}
{%else if (context.make == "b" && context.model == "c") %}
{%else%}
{%/if%}