Velocity script changing the case of a URL? | Community
Skip to main content
May 7, 2018
Question

Velocity script changing the case of a URL?

  • May 7, 2018
  • 1 reply
  • 2145 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
Level 10
May 7, 2018

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

May 7, 2018

In Marketo and Salesforce the fields are text fields.

SanfordWhiteman
Level 10
May 7, 2018

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?