Expand my Community achievements bar.

SOLVED

Is there an alternative to setOption() in personalization blocks?

Avatar

Level 2

Hello,

 

as the query says, im trying to fins a way to set an option without using setOption() since it does not work in personalization blocks. Anyone facing same issue and found a way/workaround to make it work? 

 

 

Thanks

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @PabloNeruda,

You can call the Option value in Delivery's script tab and follow the steps mentioned in this thread to call the variable in delivery's personalization block.

Script to enter in Delivery's script tab:

delivery.variables._var[0].stringValue= getOption (optionName);

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @PabloNeruda,

You can call the Option value in Delivery's script tab and follow the steps mentioned in this thread to call the variable in delivery's personalization block.

Script to enter in Delivery's script tab:

delivery.variables._var[0].stringValue= getOption (optionName);

Avatar

Level 2

Thank you very much, i ll try this way.