Attention: The Marketo Community will undergo scheduled maintenance on Tuesday, August 20th between 10-11 PM PDT. During this time, the Community and its content will not be accessible. We apologize for any inconvenience this may cause.
Hi,
Very new to Velocity and have spent some time reading up on syntax, but I cannot seem to figure out something which seems simple: getting the ID query string out of a url formatted like this:
http://my.niftyurl.com/sub/company/blahblah.php?id=0000011&ST=QRS
The url is being pulled from a lead custom field (lead.rNSLink) and I'm successfully grabbing that. But I cannot figure out what to do with it to get the ID. I've tried things like "getParameter" and other Java functions, but nothing seems to quite fit the bill.
Help would be beyond appreciated.
Regards,
Jason
Solved! Go to Solution.
#set( $rNSId = $link.uri($lead.rNSLink).getParams()["id"] )
I don't know which getParameter you were referring to, but the servlet one wouldn't apply here.
Please move the thread to Products. Move link will be at the right. "About" isn't a support space, it's for webmaster-type feedback.
Then we'll continue.
Thank you for the rapid assist. I had no idea what any of the "Spaces" meant, so I appreciate being steered in the correct direction.
- Jason
Hi Sanford.
Thanks for the answer on this. It worked fine. I realized that getParameter was for the servlet late in the game, but I didn't find 1) the syntax as you have it and 2) getParams. Clearly I need to look harder within uri documentation.
Be well,
Jason