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

Interact with ctx in transactionnal messages

Avatar

Avatar
Level 1
randreFR
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
randreFR
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
randreFR
Level 1

12-08-2020

Hi everybody,

 

I want to change the value of a ctx variable in a content bloc, but the syntax 

 

context.rtEvent.ctx.version = version

 

seems not to be allowed.

 

This way allows me to personnalize the content of several paragraphs in my email, depending on the data I receive.

 

Is it possible, and what's the syntax ?

 

Thanks for your help, I can of course explain more what I want exactly to do if necessary...

 

content bloc for example :

 

<%@ value object="startScript" %>


// default
var version = "Soutien2";

// change ctx node

context.rtEvent.ctx.version = version;

 

//debug
document.write(version);

 

<%@ value object="endScript" %>

Accepted Solutions (0)

Answers (0)