function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jake BullardJake Bullard 

Email programs breaking salesforce site URL parameters

Hey guys, 

I send an email to external customers with a link to view a visualforce page that contains a flow. That URL passes some information to the flow. Lately this URL is getting broken buy some kind of email extension that one of our customers is using. Is there any way on my end to avoid this? Below is the error they are getting when loading the page . If you look you can see the URL is changing. (I've blured some secert stuff but you get the idea) Also below is the VF page code. 

Example Error:
User-added image


Example of a correct URL{IDofRecord}


apex:page showHeader="false">
<apex:image id="Topheader" value="Top banner" width="1903" height="141"/>
         <apex:includeLightning />
      <body class="slds-scope">
         <div id="flowContainer" />
textarea {
width: 70%;
height: 150px;
            $Lightning.use("c:lightningOutApp", function() {
               $Lightning.createComponent("lightning:flow", {},
                  function (component) {
                     // Sets a value for the textVar input variable.
                     var inputVariables = [
                           name : 'DesignQuestionnaireID',
                           type : 'String',
                           value : "{!$CurrentPage.parameters.DesignQuestionnaireID}"
                     // Starts an interview in the flowContainer div, and 
                     // initializes the textVar variable.
                     component.startFlow("Design_Questionnaire", inputVariables);
   <apex:image id="Bottom banner" width="1903" height="141"/>
Larry CzerwonkaLarry Czerwonka

Not SalesForce specific but what we have always done when passing on any URL that contains variables is use a link shortening service. That has always solved issues with URLs getting truncated along the way. Just had to do this for an SMS app, some recepients were getting the URL with variables just fine and for others the URL was truncated and therefore unuseable. We set up a rotuine to use a link shortener and the complaints about a non working link have stopped.

Hope that helps.


Jake BullardJake Bullard
Thanks Larry I'll give that a shot.