WrapLongURL()
Returns a shortened URL when provided with a URL that contains over 975 characters. Use this function to mitigate a known limitation with long URLs in Microsoft Outlook 2007–2013.
URLs that you shorten using this function are incompatible with Always On Clicks. If your Member DB is unavailable, the function returns an error.
The WrapLongURL()
function has one parameter:
urlToShorten
(string): Required. The URL to shorten.
To use the function, pass it a URL to shorten. This example uses the resulting shortened URL in an HTML <img> tag.
If the URL contains more than 975 characters, the function returns a shortened link that redirects through the Marketing Cloud Engagement servers. If the URL contains fewer than 975 characters, the function returns the URL unchanged.