Message Variables/Attributes in Emails are blank

0

Hey,

I'm learning Pinpoint, and I've gone through https://docs.aws.amazon.com/pinpoint/latest/userguide/message-templates-personalizing.html, I've worked through the User Guide examples, and I'm working through the Developer Guide examples, but I've spent at least 2 days over the last 2 weeks trying to get any email message variables to appear.

I can export segments with the endpoint data, or call the API to also show the same data, but whether using Campaign emails, test emails, or message templates, the data from standard attributes or custom attributes {{ }} is always blank or uses the null values I supply in the message templates.

Does this occur because I'm using a sandbox environment?
This doesn't look hard, but is there a setting I'm missing?

Thanks for any help!

FinHead
asked 4 years ago393 views
2 Answers
0

Hey FinHead,

Sorry your having some difficulty with using message templates. I created a small test to see if I could get some steps for you to follow that may help you troubleshoot.

Before following, verify your email is verified and the email channel is enabled. Navigate to the Pinpoint Console > Project > Settings > Email to verify this information. Your account shouldn't need to be out of sandbox if your just sending these test messages - but you can see if your exceeding your sandbox limits on the Pinpoint Console > Project Overview page.

Here's some simple steps to get off the ground and see the feature work:

  1. Navigate to the consoles Create Segment section and download the sample .csv
  2. Modify one of the rows for EMAIL channel by adding your email address ( note the value in Attributes.FavoriteBaseballTeam for that column this will surface in your message later). Delete the other rows so you just have the one with your EMAIL. Save the csv
  3. Back at the Console attach the csv and name the segment. Click Create.
  4. Navigate to the Pinpoint Console > Messages Templates. Create a template for the email channel with the following content: subject: "Forum Test", body: "Your favorite team is {{Attributes.FavoriteBaseballTeam}}" and save it.
  5. Go back to the Pinpoint project where you uploaded the segment and navigate to the Campaigns feature in the left menu. Create a campaign for the email channel, choose the same created segment in step 3 above, then the same created template in step 4 above, and for schedule choose IMMEDIATE.

Hopefully the above will give you insight into how the feature works and help you troubleshoot. If you are still running into issues please share your step by step and I will help debug further.

AWS
answered 4 years ago
0

Hey awsomeaustin,

Thank you for the reply, it was very helpful!! I walked through your quick test and got it working.

I went back to look through my other attempts

  1. I was able to fill simple email templates using segments derived from loaded csv files, and also from a file stored in an S3 bucket!
  2. "Pinpoint >> "Test Messaging" email tests will never fill in message variables?
  3. New Campaign, Template preview, "send a test message" email tests will never fill in message variables?
  4. I had a complex html email and now noticed that I had one message variable that was misspelled and this was causing my email to not be sent? Once I fixed the misspelling, the email was sent!

If test messages don't have access to message variables, I didn't notice this mentioned in the help, tutorials, or docs?

Thank you for your help!

Edited by: FinHead on Apr 17, 2020 7:13 AM

FinHead
answered 4 years ago

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