Re: Velocity script changing the case of a URL?

Anonymous
Not applicable

Velocity script changing the case of a URL?

Hi folks,

I'm using a Velocity script to pull a URL from an object in Salesforce that is associated with Contact or Lead but it is changing the case of the URL so the URL isn't working anymore.

I'm using the simplest possible script:

$TriggerObject.PGI_Link_1__c

The value in that field in Salesforce is: www.backroads.com/pgi/18BIRIR1n_pgi.pdf

The value that is put in to the link in the email is: www.backroads.com/pgi/18birir1n_pgi.pdf

I do I stop the case of the link in the email from being changed to lower case? The URLs don't resolve anymore.

Thanks,

Delwin

5 REPLIES 5
SanfordWhiteman
Level 10 - Community Moderator

Re: Velocity script changing the case of a URL?

Good question. Is this datatype "URL" or "String"?

Anonymous
Not applicable

Re: Velocity script changing the case of a URL?

In Marketo and Salesforce the fields are text fields.

SanfordWhiteman
Level 10 - Community Moderator

Re: Velocity script changing the case of a URL?

Then presumably it would have nothing to do with the purpose of the content (it doesn't know it's a URL).  What about other text fields in the same object? Other non-URL content?

Anonymous
Not applicable

Re: Velocity script changing the case of a URL?

The issue was actually on the Salesforce side. We had a code bug that changed the case of the URLs from the source record to the record that actually gets read by the Velocity code.

Thanks for the help Sanford Whiteman​.

SanfordWhiteman
Level 10 - Community Moderator

Re: Velocity script changing the case of a URL?

That makes sense as otherwise no Strings would work.