AWS Pinpoint: Custom/ Dynamic data in email template

0

Hi
I have a usecase where i need to include custom data generated dynamically in the email body.
Is there a way to refer that within the template?
I was hoping to use the attributes or user.userAttributes for the same.

From the forum these are the ones I have tried and dint work in the html content.
{Attribute.myCustom}
{{Attribute.myCustom}}
{{Attribute.myCustom}}
{{{{Attribute.myCustom}}}}

Use Case
I want to send an email in my campaigns having the following format.

Hi {CustomerName},
Please do something about the following
Then a table of data
{AccountId},{Account Contact} ...

Regards
Well Wisher

asked 5 years ago841 views
1 Answer
0
Accepted Answer

Hello,

You can definitely include personalization elements in your emails. To include substitution values, just include the attribute name in double curly braces.

For example, if you have an attribute called User.UserAttributes.FirstName, you could include the following in your email:

<p>Hello {{User.UserAttributes.FirstName}},</p
>```

If you have an attribute called Attributes.FirstName, you'd use {{Attributes.FirstName}} instead.  
  
Hope that helps! Thank you for using Amazon Pinpoint.  
  
Brent @ AWS
AWS
answered 5 years ago
  • i am also having similar user case.. where i have created template..in pinoint the same template for @yahoo and outlook they are landing in inbox.. for gmail they are landing in spam folder.. we also use images with href tags .. please let me know how can i fix this problem

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions