You need to sign in to do that
Don't have an account?
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:
Example of a correct URL
http://eddmsite.force.com/QuestionnaireFlowLighting?DesignQuestionnaireID={IDofRecord}
apex:page showHeader="false"> <apex:image id="Topheader" value="Top banner" width="1903" height="141"/> <html> <head> <apex:includeLightning /> </head> <body class="slds-scope"> <div id="flowContainer" /> <style> textarea { width: 70%; height: 150px; } </style> <script> $Lightning.use("c:lightningOutApp", function() { $Lightning.createComponent("lightning:flow", {}, "flowContainer", 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); } ); }); </script> </body> </html> <apex:image id="Bottom banner" width="1903" height="141"/> </apex:page>
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.