Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
@Nutsa9858 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") %}
<!-- Your output here for make 'a' -->
{%else if (context.make == "b" && context.model == "c") %}
<!-- Your output here for make 'b' and model 'c' -->
{%else%}
<!-- Fallback output -->
{%/if%}
@Nutsa9858 Follow similar syntax to adapt to your needs.
@Nutsa9858 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") %}
<!-- Your output here for make 'a' -->
{%else if (context.make == "b" && context.model == "c") %}
<!-- Your output here for make 'b' and model 'c' -->
{%else%}
<!-- Fallback output -->
{%/if%}
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies