Dynamic Newsletter - Contact greeting

Dmitry Bastron asked on July 18, 2016 14:39

Hi Community!

I've created a simple page to be used for Dynamic Newsletter. I've created a new Dynamic Newsletter campaign (with that page as URL). And finally I've filled campaign Subscribers list with some contacts.

Now I need to insert a personal greeting in the email message. I've tried to add a couple of Macros to the page for Dynamic Newsletter but unsuccessfully. Here is what I've tried and what I've got in the emails:

{% Contact.DisplayName %}    // returned "Anonymous - 2016-07-18 17:28:53.020"
{% OnlineMarketingContext.CurrentContact.DisplayName %}    // returned the same
{% CurrentUser.DisplayName %}    // returned "Public Anonymous User"

What Macro should I use to achieve this? Is it possible at all?

Correct Answer

Dmitry Bastron answered on July 19, 2016 06:38

I've read the article on the Devnet about macro resolving in Dynamic Newsletter: article

In Kentico 7+ there is a "resolver" parameter in Macro for dynamic newsletters. The Macro should look like:

{%FirstName|(resolver)subscriber%}
0 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on July 18, 2016 14:47 (last edited on December 10, 2019 02:30)

Have you tried using the Subscriber object macro? {%Subscriber.FirstName|(identity)GlobalAdministrator%}

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on July 18, 2016 14:55 (last edited on December 10, 2019 02:30)

I've just tried it using the following Static HTML web part text:

Hi, {% Subscriber.FirstName |(identity)GlobalAdministrator%}

And got:

Hi,   // with empty string

Please note that I've added existing contacts into the subscribers list. I haven't create a new subscribers.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.