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

Dynamically Assign Coupon Codes and coupon values to a delivery

Avatar

Avatar
Level 1
Chris_Campaign_Classic_UK
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Chris_Campaign_Classic_UK
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
Chris_Campaign_Classic_UK
Level 1

20-03-2021

I am assigning the delivery.coupon_id=instance.vars.vCouponCode; in the script of the delivery activity (* delivery). This seems to successfully assign the coupon id to the delivery.

 

During personalisation, the delivery fails, from what I can ascertain <% couponValue.couponCode %> is not being successfully resolved during personalisation.

 

Any insights into how to dynamically assign the coupon and coupon values to a delivery during workflow execution?

 

*Note the coupon is individual.

 

 

 

 

Campaign Classic

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Boost 5
Employee
denisb91363072
Employee

Likes

8 likes

Total Posts

28 posts

Correct Reply

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

Avatar
Boost 5
Employee
denisb91363072
Employee

Likes

8 likes

Total Posts

28 posts

Correct Reply

6 solutions
Top badges earned
Boost 5
Affirm 5
Boost 3
Boost 1
Affirm 3
View profile
denisb91363072
Employee

24-03-2021

Hi,

When you say "Coupon is individual", do you mean that there is one coupon id per recipient in the targeted audience? Recipient A receives coupon code A while recipient B receives coupon code B. Or is it the same coupon code across the whole delivery?

Do you have a record in the nms:coupon entity that is linked to the Delivery via the coupon-id field?

The syntax to add the coupon code might be <%= message.delivery.coupon.code %>

Thanks

Denis