Trim http:// or https:// from field value. Via Velocity or other way...?
Hi Community!
I am looking for a way to edit/trim a field value, removing the HTTP:// or HTTPS://
Background: I am receiving a link from SFDC in a custom field on the contact object. I want to use this link as the main CTA in an email to the contacts, it is unique to each contact. But, as we all know when we use a token value as a link we must insert it without the HTTP//: or HTTPS:// and hard code the protocol into the email code, so Marketo will notice the protocol and properly wrap the link in tracking shortener.
How do I deal with this value having the http:// or https:// in it can I trim it with a velocity script? Is there an operational program I can rig up to trim the value? Unfortunately I cannot request that the value be modified at the source because other integrated systems and processes use the value as-is in SFDC.
Any wizard ideas out there?
Many thanks in advance.
Best,
Eric Rex