Hi there
I would like to personalize an email as following:
If Attribute 1 = "A", then show value of Attribute 2.
Both attributes are available in Profile.
Example
Customer | Attribute 1 | Attribute 2 |
John | A | 100 |
John | B | 200 |
John | C | 300 |
Output:
100
I tried replicating through Helper Functions with a IF statement, but I did not get the results I hoped for. (Helper Functions)
Appreciate your input!
(In SFMC this is pretty easily done through AMP)
Best,
Giorgia
Solved! Go to Solution.
Views
Replies
Total Likes
You may be able to retrieve this value using some of the array helper functions, like "includes"
Beyond that you may be looking at a Change Dimension type use case.
Hi @mandarinooo,
I did try this within email designer and it works. Make sure you have path correct that you can confirm from the schema.
{%#if profile.person.name.firstName = "John"%} {{profile.person.name.lastName}} {%else%} displayFirstname {%/if%}
Thanks!
Thank you for your reply.
Your approach worked for First Name / Last name as the data has a 1:1 relationship. Every customer has only one First name and only one Last name.
It does not work when the data has a one to many relationship, like in case of arrays.
Views
Replies
Total Likes
You may be able to retrieve this value using some of the array helper functions, like "includes"
Beyond that you may be looking at a Change Dimension type use case.
Hi,
I would like that, too. Hope for more input. Thanks.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies