Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Adding additional personalization data in BuildPreviewFromId function

Avatar

Avatar
Validate 10
Level 4
richac96395021
Level 4

Likes

32 likes

Total Posts

86 posts

Correct Reply

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

Avatar
Validate 10
Level 4
richac96395021
Level 4

Likes

32 likes

Total Posts

86 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 25
View profile
richac96395021
Level 4

21-08-2019

Hi team,

We are using BuildPreviewFromId function in javascript, please let me know if we can add more personalization like 'targetData.amount' while calling the function. Below is the function definition:-

var res = nms.delivery.BuildPreviewFromId(

  deliveryId,

  <params content="html" filter="@id=1234"/>)

var preview  = res[0]

var queryResult = res[1]

with regards,

Richa Chaubey

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

976 likes

Total Posts

1,096 posts

Correct Reply

514 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile

Avatar
Establish
MVP
wodnicki
MVP

Likes

976 likes

Total Posts

1,096 posts

Correct Reply

514 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile
wodnicki
MVP

21-08-2019

Hi,

Previews will generate same output as deliveries to seeds:

Thanks,

-Jon

Answers (2)

Answers (2)

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

976 likes

Total Posts

1,096 posts

Correct Reply

514 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile

Avatar
Establish
MVP
wodnicki
MVP

Likes

976 likes

Total Posts

1,096 posts

Correct Reply

514 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile
wodnicki
MVP

21-08-2019

Hi,

For targetData, you need to use seeds:

<params content="html" filter="@id = 1234" schema="nms:seedMember"/>

Thanks,

-Jon

Avatar

Avatar
Validate 10
Level 4
richac96395021
Level 4

Likes

32 likes

Total Posts

86 posts

Correct Reply

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

Avatar
Validate 10
Level 4
richac96395021
Level 4

Likes

32 likes

Total Posts

86 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 25
View profile
richac96395021
Level 4

21-08-2019

Hi Jon,

In the above function definition, how will the target extension attributes will be referred in personalization. For example @amount is part of cus: transactions schema (target extension) and not nms:seedMember schema. How will the preview generate

With regards,

Richa Chaubey