Expand my Community achievements bar.

SOLVED

linked data in personalization field

Avatar

Level 5

Hi,

In an email delivery I'm adding linked data to a recipient profile through a custom query:

Schermafbeelding 2020-02-19 om 12.04.22.png

 

I can see that in preview, the data is added to the recipient context:

Schermafbeelding 2020-02-19 om 12.07.24.png

However, when I try to address this field (DCE), I don't get the value:

Schermafbeelding 2020-02-19 om 12.19.28.png

Results in:

Schermafbeelding 2020-02-19 om 12.20.47.png

However path query is similar to that of the currentDelivery label, which is clearly shown...

 

Don't know what I'm missing here... anyone experience with this?

 

Thanks,

 

Stefan

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @stefanm38281801 ,

 

try with [recipient/relationAttributes/@lastbuystore] to fetch the value.

 

Regards,

Milan

View solution in original post

6 Replies

Avatar

Correct answer by
Community Advisor

Hi @stefanm38281801 ,

 

try with [recipient/relationAttributes/@lastbuystore] to fetch the value.

 

Regards,

Milan

Avatar

Level 5
won't work... it's not an attribute, it's a node value

Avatar

Community Advisor

Hi @stefanm38281801,

 

did you try without brackets?

 

data-nl-exp="recipient/relationAttributes/lastbuystore"

 

Regards,

Milan

Avatar

Level 5
yes... tried that too... no success... the xpath seems to be correct... not sure if it is the right entry point and if I can address that structure within the content...

Avatar

Community Advisor

Hi @stefanm38281801,

 

could you, please, try with the following:

 

[recipient/relationAttributes[0]/lastbuystore]

 

Regards,

MIlan

Avatar

Level 5
thanks Milan, relationAttributes is a 1:n relation... indexing [0] did the trick...