Read data from a schema linked to recipient in a Email delivery

Avatar

Avatar
Validate 1
Level 2
muralipraveenr1
Level 2

Likes

9 likes

Total Posts

14 posts

Correct reply

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

Avatar
Validate 1
Level 2
muralipraveenr1
Level 2

Likes

9 likes

Total Posts

14 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
muralipraveenr1
Level 2

28-02-2020

Hello,

We have a custom schema "recipient Registrations" which is linked to extended recipient schema. when we try to include the data from this custom schema in an email delivery
" recipient.recipientRegistration.createdDate" we are getting "undefined"  in the sent out mail/preview section.
when we try to print the entire schema we getting "[object EntityCollection]"
 
Is there any other way to display this value on the Email?
How to display the value from this entity collection object?
 
Thanks in Advance.
 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Contributor
MVP
Milan_Vucetic
MVP

Likes

166 likes

Total Posts

386 posts

Correct reply

135 solutions
Top badges earned
Contributor
Springboard
Shape 1
Validate 25
Validate 10
View profile

Avatar
Contributor
MVP
Milan_Vucetic
MVP

Likes

166 likes

Total Posts

386 posts

Correct reply

135 solutions
Top badges earned
Contributor
Springboard
Shape 1
Validate 25
Validate 10
View profile
Milan_Vucetic
MVP

02-03-2020

Hi @muralipraveenr1 ,

 

in case of collection you should access the value using index:

 recipient.recipientRegistration[0].createdDate

 

This will work for you like this in case you have link 1:1.

If you have multiple values for the same recipient you need iteration of index. ([0],[1],[2]...)

 

In case there is not an record for particular recipient you will get error like "Index out of range" therefore you should have conditional personalization here (if/then).

 

Regards
Milan

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 2
anupk2111
Level 2

Likes

8 likes

Total Posts

16 posts

Correct reply

5 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 5
View profile

Avatar
Validate 1
Level 2
anupk2111
Level 2

Likes

8 likes

Total Posts

16 posts

Correct reply

5 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 5
View profile
anupk2111
Level 2

03-03-2020

@muralipraveenr1  is correct about using the field as a collection.

 

An alternative workaround could be to create the link with the custom schema and bring back the collection filed into target data. This could be done by using an enrichment, bringing the collection field and renaming the internal name. Now you have the data in the target filed and use it as targetData.fieldXYZ.

anupk2111_0-1583238084676.png

 

Hope this helps.

Anup