+ Start a Discussion
BrianWXBrianWX 

Email Template

Hi,

 

I have a link that I include in an email template.  This link has opportunity name associated in the link.  Because the opportunity can contain spaces, I'd like to find out how I can url-enclode it.

 

For example:

This is the potential URL format I have: https://cs1.salesforce.com/a08/e?CF00N70000001ZiKE=NGFW+Replacement&CF00N70000001ZiKE_lkid=006S0000006A94f&retURL=%2F006S0000006A94f

 

The opportunity name is "NGFW Replacement".  If I don't enclode it will come out to email with a space, and the link will be broken.

 

Thanks,

Brian

BrianWXBrianWX

Found out the solution:

 

{!URLENCODE(Opportunity.Name)}