Dynamically Assign Coupon Codes and coupon values to a delivery | Adobe Higher Education
Skip to main content
Chris_Campaign_Classic_UK
March 20, 2021
Frage

Dynamically Assign Coupon Codes and coupon values to a delivery

  • March 20, 2021
  • 1 Antwort
  • 1234 Ansichten

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.

 

 

 

 

Dieses Thema wurde für Antworten geschlossen.

1 Antwort

Adobe Employee
March 24, 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