Is there an alternative to setOption() in personalization blocks? | Adobe Higher Education
Skip to main content
Level 2
February 13, 2025
解決済み

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

  • February 13, 2025
  • 1 の返信
  • 488 ビュー

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

ベストアンサー ParthaSarathy

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);

1 の返信

ParthaSarathy
Community Advisor
Community Advisor
February 13, 2025

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);
~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups
Cl4ud
Level 2
February 22, 2025

Thank you very much, i ll try this way. 🙂