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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Coupon Implementation

hemantsharma
Level 2
Level 2

Hi Team

I have a requirement where I need to randomly pick coupon codes from coupon table and assign to recipients and update coupon table with code has been used  ,How can I do that ?

I guess I need to write some script which dynamically fetch codes from table and assign to target recipients and update coupon table with status.

It will be great if some one can help me on this ,its an urgent requirement in my project.

Regards

1 Accepted Solution
abelrochaespino
Correct answer by
Level 1
Level 1

The inconsistency was due a permission problem.

You should be able to achieve this using only "Update Data" nodes to insert Coupons e Coupon Values.

View solution in original post

2 Replies
abelrochaespino
Level 1
Level 1

Hi hemantsharma!

I'm trying exactly the same.

We need to create coupons dynamically, depending on an external list.

Do you know that the Adobe Campaign already counts on a Coupon structure?

Maybe this will help you to start: Personalized coupons

This structure already picks randomly coupon values for each recipient. The challenge is just to load coupon codes to this structure without manual work.

We managed to build Coupons using javascript code and building an XML using the API documentation.
Our problem now resides in load the coupon values (the codes) to the structure. We couldn't find, yet, how to build an XML for doing this dynamic addition.

I tried to make the loading of the coupon values using the "Update Data" node in a Technical Workflow. But it doesn't seem to be consistent.

If I have any updates, I'll bring here.

abelrochaespino
Correct answer by
Level 1
Level 1

The inconsistency was due a permission problem.

You should be able to achieve this using only "Update Data" nodes to insert Coupons e Coupon Values.

View solution in original post