Coupon codes mapping | Community
Skip to main content
August 28, 2025
Solved

Coupon codes mapping

  • August 28, 2025
  • 1 reply
  • 734 views

HI Community,

 

I have a csv file that contains unique coupon codes, within a campaign I have to assign a unique code as per the customer.

can anyone please let me know how can I achieve it using enrichment

 

 

Best answer by Rch_

Hi @sah_,

 

For 3rd point it will be like creating a link between those row number. Attaching snip as well:

 

 

Thanks,

1 reply

Rch_
Level 3
August 28, 2025

Hi @sah_,

 

When you load the CSV using the Data Loading (file) activity, just skip selecting a schema — Campaign will automatically create a temporary table for you behind the scenes. This is great if you don’t need to store the coupons long-term or reference them later.

Here’s how you can handle the unique assignment using enrichment:

1. Load the CSV file with coupon codes (as a temporary table).
2. Add a Row Number in the enrichment step to both:

- Your recipient data
- The loaded coupon data

*Use this RowNum() function*

 


3. Join the two datasets using the row number (1st row to 1st row, 2nd to 2nd, etc.)

This way, each customer gets exactly one coupon — no custom schema needed.

 

Thanks,

 

 

sah_Author
August 28, 2025

Hi @rch_ 

 

Thank you for your response

Can you please attach some snaps of point 3

Rch_
Rch_Accepted solution
Level 3
August 28, 2025

Hi @sah_,

 

For 3rd point it will be like creating a link between those row number. Attaching snip as well:

 

 

Thanks,