Velocity Token URL not populating correctly (repeats the same URL)
Hi,
I'm having this issue in which I want to retrieve the link URL from a webinar depending on their eventid (being the eventid a dedupe field.
My code is this one:
#set($targetEventId = "93992165641")
#set($index = -1)
#foreach($webinar in $zoomWebinars_cList)
#if($webinar.eventid == $targetEventId)
#set($index = $foreach.count - 1)
#break
#end
#end
#if($index != -1)
<a href="${zoomWebinars_cList.get($index).joinURL}">Access Webinar</a>
#else
Webinar not found.
#end
Thing is I want to include 3 velocity token in 1 single email. The 3 tokens will appear as hyperlinks but will only redirect to 1 session.
I know there are some resources for #foreach thing but my coding skills are not good enought I believe.
Does anyone know what's causing the problem here?
I did some testing and index works fine as it retrieves the correct eventid and URL but won't populate it correctly in the hyperlink.
