Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Are there any parameters available to prevent execution of transactional delivery node from within template JavaScript?

Avatar

Avatar
Level 1
JoshuelPattersonRM
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
JoshuelPattersonRM
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
JoshuelPattersonRM
Level 1

29-12-2020

I'm in a pinch and am looking for a way to prevent/cancel execution of a delivery node (transactional) using JavaScript/EJS in ACC, from within the template itself if a specific set of conditions are met.  Where can I find information on the methods and properties available for this from within a delivery node?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Contributor
MVP
wodnicki
MVP

Likes

923 likes

Total Posts

1,050 posts

Correct Reply

493 solutions
Top badges earned
Contributor
Shape 1
Give Back 100
Give Back 50
Give Back 25
View profile

Avatar
Contributor
MVP
wodnicki
MVP

Likes

923 likes

Total Posts

1,050 posts

Correct Reply

493 solutions
Top badges earned
Contributor
Shape 1
Give Back 100
Give Back 50
Give Back 25
View profile
wodnicki
MVP

01-01-2021

Hi,

 

The throw() and logError() functions are unavailable at the MTA for some reason.

Campaign allows you to modify the message object though, and will use the modifications. So just trash it 🙂

 

<% if (ctx.pleaseFail == '1') message = 1; %>

 

Sending <ctx><pleaseFail>1</pleaseFail></ctx> in payload will fail that message.

 

Thanks,

-Jon

Answers (0)