Skip to main content
added screenshot of journey data extension
Source Link
Kora K
  • 103
  • 3

I want to create an email that contains a personalized URL based on an email address. I am using the Journey Builder and the entry source is Salesforce data.

I can see that the email adress and name of the contacted person are part of the entry source:

Data entry source for journey

However, when I try to use the email value in the email that is the next node in the journey, the previous StackExchange answers don't work. I've tried [Contact:Email], and AttributeValue("Contact:Email").

The first option [Contact:Email] throws an error in validation:

There is an error in your email. Please contact your customer service representative. Fehler 1: Script SET Statement Invalid<br>An error occurred when attempting to resolve a script expression. See inner exception for detail. Script Expression: [Contact:Email] MemberID: XXXX JobID: 0 An unrecognized expression appears in a script block. Script Expression: [Contact:Email] MemberID: XXXX JobID: 0 <br>Ungültiger Inhalt: <br>SET @email2 = [Contact:Email]).

The second version using AttributeValue doesn't throw an error, but the value is not populated in the email that is sent out.

I set the variable like this in the email:

%%[set @email = AttributeValue("Contact:Email")]%%

 Guten Tag %%=v(@email)=%%,

and the email arrives like this:

Guten Tag without email value populated

The email value was not retrieved. How can I retrieve the email value?

The field name in the journey data extension is also seemingly called Contact:Email: Journey data extension

I want to create an email that contains a personalized URL based on an email address. I am using the Journey Builder and the entry source is Salesforce data.

I can see that the email adress and name of the contacted person are part of the entry source:

Data entry source for journey

However, when I try to use the email value in the email that is the next node in the journey, the previous StackExchange answers don't work. I've tried [Contact:Email], and AttributeValue("Contact:Email").

The first option [Contact:Email] throws an error in validation:

There is an error in your email. Please contact your customer service representative. Fehler 1: Script SET Statement Invalid<br>An error occurred when attempting to resolve a script expression. See inner exception for detail. Script Expression: [Contact:Email] MemberID: XXXX JobID: 0 An unrecognized expression appears in a script block. Script Expression: [Contact:Email] MemberID: XXXX JobID: 0 <br>Ungültiger Inhalt: <br>SET @email2 = [Contact:Email]).

The second version using AttributeValue doesn't throw an error, but the value is not populated in the email that is sent out.

I set the variable like this in the email:

%%[set @email = AttributeValue("Contact:Email")]%%

 Guten Tag %%=v(@email)=%%,

and the email arrives like this:

Guten Tag without email value populated

The email value was not retrieved. How can I retrieve the email value?

I want to create an email that contains a personalized URL based on an email address. I am using the Journey Builder and the entry source is Salesforce data.

I can see that the email adress and name of the contacted person are part of the entry source:

Data entry source for journey

However, when I try to use the email value in the email that is the next node in the journey, the previous StackExchange answers don't work. I've tried [Contact:Email], and AttributeValue("Contact:Email").

The first option [Contact:Email] throws an error in validation:

There is an error in your email. Please contact your customer service representative. Fehler 1: Script SET Statement Invalid<br>An error occurred when attempting to resolve a script expression. See inner exception for detail. Script Expression: [Contact:Email] MemberID: XXXX JobID: 0 An unrecognized expression appears in a script block. Script Expression: [Contact:Email] MemberID: XXXX JobID: 0 <br>Ungültiger Inhalt: <br>SET @email2 = [Contact:Email]).

The second version using AttributeValue doesn't throw an error, but the value is not populated in the email that is sent out.

I set the variable like this in the email:

%%[set @email = AttributeValue("Contact:Email")]%%

 Guten Tag %%=v(@email)=%%,

and the email arrives like this:

Guten Tag without email value populated

The email value was not retrieved. How can I retrieve the email value?

The field name in the journey data extension is also seemingly called Contact:Email: Journey data extension

Source Link
Kora K
  • 103
  • 3

Use journey entry data for personalization in email

I want to create an email that contains a personalized URL based on an email address. I am using the Journey Builder and the entry source is Salesforce data.

I can see that the email adress and name of the contacted person are part of the entry source:

Data entry source for journey

However, when I try to use the email value in the email that is the next node in the journey, the previous StackExchange answers don't work. I've tried [Contact:Email], and AttributeValue("Contact:Email").

The first option [Contact:Email] throws an error in validation:

There is an error in your email. Please contact your customer service representative. Fehler 1: Script SET Statement Invalid<br>An error occurred when attempting to resolve a script expression. See inner exception for detail. Script Expression: [Contact:Email] MemberID: XXXX JobID: 0 An unrecognized expression appears in a script block. Script Expression: [Contact:Email] MemberID: XXXX JobID: 0 <br>Ungültiger Inhalt: <br>SET @email2 = [Contact:Email]).

The second version using AttributeValue doesn't throw an error, but the value is not populated in the email that is sent out.

I set the variable like this in the email:

%%[set @email = AttributeValue("Contact:Email")]%%

 Guten Tag %%=v(@email)=%%,

and the email arrives like this:

Guten Tag without email value populated

The email value was not retrieved. How can I retrieve the email value?