Expand my Community achievements bar.

Join us for an upcoming in-person Adobe Target Skill Builders event ~~> We're hosting these live learning opportunities to equip you with the knowledge and skills to leverage Target successfully. Learn more to see if we'll be coming to a city near you!

Map in Velocity

Avatar

Level 2

Hi, I have a map 

#set ($mymap={"keyname":"value1,value2"})

The key name will be dynamic in my case, hence tried

"$mymap[$dynamickeyname]" where $dynamickeyname evaluates to keyname. But throws a parse error.

It is not working in the target's velocity template.

I have tried $!mymap.get("$!dynamickeyname") as well which is not working either.

Can you please assist with the right syntax to retrieve the map values dynamically.

 

0 Replies