Skip to main content
Sathyam_Chandan
Level 2
December 6, 2023
Respondido

How to add offer codes to delivery form Java script code.

  • December 6, 2023
  • 6 respostas
  • 1454 Visualizações

Dear Community Leaders:

 

I have some offer codes like those below; they are unique (exp: 100 targeted customers, 100 unique coupons). I want to add these offer codes to delivery through a Java script. Is it possible to add these codes to delivery? Can you please help me with this?

 

 

 

 

Regards

Sathyam

 

 

Este tópico foi fechado para respostas.
Melhor resposta por Manoj_Kumar

Hello @sathyam_chandan 

 

You can assign these coupons to targeted customers via enrichment activity. No JavaScript is required.

 

I am assuming you have these coupons in a file. If that is the case then you can upload the file via file upload activity and keep the line number in both activities for linking.

 

Add this to query activity:

 

and in the data loading activity check the checkbox

 

Then use these columns to create 1:1 join via enrichment.

 

6 Respostas

Manoj_Kumar
Community Advisor
Manoj_KumarCommunity AdvisorResposta
Community Advisor
December 6, 2023

Hello @sathyam_chandan 

 

You can assign these coupons to targeted customers via enrichment activity. No JavaScript is required.

 

I am assuming you have these coupons in a file. If that is the case then you can upload the file via file upload activity and keep the line number in both activities for linking.

 

Add this to query activity:

 

and in the data loading activity check the checkbox

 

Then use these columns to create 1:1 join via enrichment.

 

Manoj  | https://themartech.pro
ParthaSarathy
Community Advisor
Community Advisor
December 7, 2023

Hi @sathyam_chandan ,

You can also utilize coupon management to solve this.

Refer coupon management document

Create a 'Individual' type coupon and import the coupon values in it using a import workflow and configure this coupon in delivery (configuration steps mentioned in above document).

~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups
Sathyam_Chandan
Level 2
December 7, 2023

HI @parthasarathy 

 

I have also tried through coupon management. but codes are not updated in the coupon values.

 

1) 

 

2)

 

3)

 

4)

 

5)

 

6)

 

7)

 

😎

 

Regards

Satyam

 

 

Sathyam_Chandan
Level 2
December 7, 2023

Hi @_manoj_kumar_ ,

 

Can you please help with the workflow setup?

 

1. I have uploaded all the coupons to the file upload activity and selected line number

2. I have selected the target from the query activity and add RowNum() in the complementary information section.

 

But I am getting the below error.

 

 

 

 

 

 

 

Please help me how to setup workflow.

 

Regards

@sathyam_chandan 

 

Manoj_Kumar
Community Advisor
Community Advisor
December 8, 2023

Hello @sathyam_chandan 

 

Try replacing RowNum() with RowId() and it should work.

Manoj  | https://themartech.pro
Sathyam_Chandan
Level 2
December 8, 2023

Hi @_manoj_kumar_ ,

 

Thank you for your help. It is working fine, but I am having some issues with enrichment.

 

Reconciliation 

 

Personalization field in the delivery.

 

Regards

@sathyam_chandan