Hi,
I'm fairly new to scripting - I'm trying to include a my token inside of my script. However, the data isn't populating. Apologies if this has already been asked previously.
#set($equipmentName = ${my.equipment})
#set($WFID = ${my.WFID})
#set($urlBodyImage = "www.google.com/$WFID/body_image_$equipmentName")
<a href="https://${urlBodyImage}"><img alt="Image" style="background-color: #ffffff; display: block; float: none; margin: 0px auto; -ms-interpolation-mode: bicubic; padding: 0px;"https://www.dummyimage.com/255x100" width="255" /></a>
#end
The output I'm seeing is - https://www.google.com/$WFID/body_image_$equipmentName
How I want it to output - https://www.google.com/45689/body_image_iphone
Thanks!
@deepikachandar please return to your thread and check responses.
Much as I adore Velocity, I’d also wonder exactly why Velocity is being used here.
You can concatenate/interpolate {{my.tokens}} into URLs outside of Velocity, and it doesn’t look like you’re really manipulating the values (which would require Velocity)?
@SanfordWhiteman wrote:
Much as I adore Velocity, I’d also wonder exactly why Velocity is being used here.
You can concatenate/interpolate {{my.tokens}} into URLs outside of Velocity, and it doesn’t look like you’re really manipulating the values (which would require Velocity)?
@SanfordWhiteman , my best guess is that there is more going on than meets the eye - the extra #end being the potential give away to me.
I've edited your post to show your code as code.
There are a few problems that I can see.
Cheers
Jo