JavaScript connector in "External Direct Mail Delivery" | Community
Skip to main content
Heku_
Level 5
July 31, 2023
Question

JavaScript connector in "External Direct Mail Delivery"

  • July 31, 2023
  • 2 replies
  • 840 views

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:

But it didn't work, any ideas?

Thank you.

@Manoj_Kumar_ @ParthaSarathy @Parvesh_Parmar @DavidKangni 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

LakshmiPravallika
Community Advisor
Community Advisor
August 4, 2023

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.

Heku_
Heku_Author
Level 5
August 4, 2023

Hello @lakshmipravallika, thank you for the reply.

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

 

akshaaga
Adobe Employee
Adobe Employee
August 4, 2023

@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.