Dynamic Personalization of content in AJO Email Template Designer
HI All,
Recently there was a use case in which we need to update a Number based on a contextual attribute in email designer of AJO.
Let say there are 4 attributes in my schema each has a boolean value in it.
ATTR1, ATTR2, ATTR3, ATTR4 True/ False
A journey - Unitary Event Based trigger using the above schema -> email ( 2 nodes )
Basically in my email, based on the values of the contextual attributes I need to output 4 statements each related to a attribute.
Sample Example- 1
ATTR1 - True , ATTR2 - True , ATTR3 - True ,ATTR4 - True
Since all are true I need to output the below texts in the editor along with numbers at front
1. Statement 1
2. Statement 2
3. Statement 3
4. Statement 4
Sample Example- 2
ATTR1 - True , ATTR2 - False , ATTR3 - False ,ATTR4 - True
Since 1 and 4 are true I need to output the below texts in the editor ( As we see the numbers are constant but the statements changes)
1. Statement 1
2. Statement 4
------------------------------------------------------------------------------------------------------------------------------
So the catch here is to dynamically adjust numbers as we print the statements.
----------------------------------------------------------------------------------------------------------------------------
I have tried to use the Dynamic 'If' conditions but this doesn't solve the numbers issue. So I need to maintain a counter or something that could increase only when something is printing. But did not find any useful functions here.
Thanks in advance