내 커뮤니티 업적 표시줄을 확대합니다.

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 

주제

토픽은 커뮤니티 콘텐츠를 분류하여 관련성 있는 콘텐츠를 찾는 데 도움이 됩니다.

3 답변 개

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.