Expand my Community achievements bar.

JavaScript connector in "External Direct Mail Delivery"

Avatar

Level 7

Hi, I have a Direct Mail Delivery where the routing has a Post-processing workflow, I would like to send custom event variables to that post-processing workflow. I tried to write event.variables.new="New" in this Js code:

Heku__0-1690789980880.png

But it didn't work, any ideas?

Thank you.

@Manoj_Kumar_ @ParthaSarathy @Parvesh_Parmar @DavidKangni 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

3 Replies

Avatar

Community Advisor

Hi @Heku_ ,

 

Please try sending event variables in this format below

 

event.variables= <variables description="" email="test@test.com" ></variables>

 

in your JS Code and let me know.

 

Regards,

Pravallika.

Avatar

Level 7

Hello @LakshmiPravallika, thank you for the reply.

I tried to use your code bit it didnt appear in the event variables. 

Heku__0-1691141419226.png

Heku__1-1691141465330.png

 

Avatar

Employee Advisor

@Heku_ ,

Based on the JavaScript code you provided, it seems like you are trying to send custom event variables to a post-processing workflow in a Direct Mail Delivery. However, your shared code snippet does not provide enough context to identify the issue.

To send custom event variables to a post-processing workflow, you need to ensure the following:

1. *Correct event triggering:* Make sure the JavaScript code snippet is placed at the appropriate location in your Direct Mail Delivery workflow, so it triggers at the right time to send the custom event variables.

2. *Proper event variable assignment:* Check that the `event.variables.new` object is defined and assigned correctly.