Personalized content fallback

Avatar

Avatar
Validate 1
Level 1
cedericp8720613
Level 1

Likes

4 likes

Total Posts

1 post

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 1
cedericp8720613
Level 1

Likes

4 likes

Total Posts

1 post

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
cedericp8720613
Level 1

22-03-2017

Hi,

I,m currently setting up my very first email delivery in Adobe Campaign. In a first phase, I want to add basic personalization (last name, first name).

However, I'm aware I also need to implement a fallback in case the CRM fields are empty. So instead of "Dear Mr. X', I need a fallback resorting to simply 'Dear Mr.'

How do I implement this fallback?

Kind regards

 

Cederic

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
MVP
Amit_Kumar
MVP

Likes

329 likes

Total Posts

649 posts

Correct reply

231 solutions
Top badges earned
Springboard
Ignite 5
Ignite 3
Ignite 1
Validate 10
View profile

Avatar
Springboard
MVP
Amit_Kumar
MVP

Likes

329 likes

Total Posts

649 posts

Correct reply

231 solutions
Top badges earned
Springboard
Ignite 5
Ignite 3
Ignite 1
Validate 10
View profile
Amit_Kumar
MVP

26-03-2017

Hi Cedric,

try using coalesce  function in your target and add a default value as empty i.e 

      

Coalesce

Returns value 2 if value 1 is zero or null, otherwise returns value 1

Coalesce(<value 1>, <value 2>)

refer to the screens below. This will help the business user and template designers to avoid the if else and any other js from email template.

Answers (5)

Answers (5)

Avatar

Avatar
Validate 1
Level 2
garyh79802400
Level 2

Likes

3 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 3
View profile

Avatar
Validate 1
Level 2
garyh79802400
Level 2

Likes

3 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 3
View profile
garyh79802400
Level 2

16-10-2018

This is the Campaign Standard forum, and the accepted answer is for Campaign Classic?

Avatar

Avatar
Validate 1
Level 2
garyh79802400
Level 2

Likes

3 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 3
View profile

Avatar
Validate 1
Level 2
garyh79802400
Level 2

Likes

3 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 3
View profile
garyh79802400
Level 2

13-05-2019

In Adobe Campaign Standard, which is what forum this question was posted to:

There really isn't an out-of-box way to do this. The only way you can choose fallback behavior is with JavaScript. Here is some pseudocode which should get you started:

<% var greeting = null; if(context.profile.firstName == null) { greeting = ""; } else { greeting = context.profile.firstName;  } %>

Dear Mr. <%= greeting %>

(Note that "Dear Mr." by itself does not sound natural to native English speakers, so you'd want better copy.)

Avatar

Avatar
Validate 1
Level 2
hansangy1377908
Level 2

Likes

14 likes

Total Posts

28 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
hansangy1377908
Level 2

Likes

14 likes

Total Posts

28 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
hansangy1377908
Level 2

05-03-2019

I'm guessing the answer is NO in AC standard then....

Avatar

Avatar
Establish
Employee
Adhiyan
Employee

Likes

241 likes

Total Posts

343 posts

Correct reply

124 solutions
Top badges earned
Establish
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile

Avatar
Establish
Employee
Adhiyan
Employee

Likes

241 likes

Total Posts

343 posts

Correct reply

124 solutions
Top badges earned
Establish
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
Adhiyan
Employee

22-03-2017

Hi Cedric,

You should use if ,else if constructs in the delivery editor to use such conditional content.

Detailed steps are given in : https://docs.campaign.adobe.com/doc/AC6.1/en/DLV_Personalizing_deliveries_Conditional_content.html

Avatar

Avatar
Validate 10
Level 2
alistairk396804
Level 2

Likes

14 likes

Total Posts

45 posts

Correct reply

4 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 2
alistairk396804
Level 2

Likes

14 likes

Total Posts

45 posts

Correct reply

4 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
alistairk396804
Level 2

22-03-2017

Ideally I would probably make a new field on load which contains the correct value for your greeting.

Failing that your best bet is to create a personalisation block which deals with this and select that block for your greeting. You should be able to duplicate the Greetings personalisation block as a base and modify to suit your needs.