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
Erica Champine 1Erica Champine 1 

VF Page for Flow Finish Location

I have created a VF Page to set the Finish Location for my Flow.  However, when I attempt to use the button, I am receiving an error - URL No Longer Exists.  Any ideas?

<apex:page id="theTransferPage" standardcontroller="SCMC__Sales_Order__c">
    <apex:variable var="theReplacementTransfer" value="{!SCMC__Sales_Order__c.Id}"></apex:variable>
    <div style="float: left; width: 600px; padding: 10px;">
            <flow:interview name="ReplacementTransferRequest" finishLocation="{!URLFOR('/'+theReplacementTransfer)}" >
                    <apex:param name="varSalesOrderID" value="{!SCMC__Sales_Order__c.Id}"/>
                    <apex:param name="varOwnershipID" value="{!SCMC__Sales_Order__c.SCMC__Ownership__c}"/>
                    <apex:param name="varComments" value="{!SCMC__Sales_Order__c.SCMC__Sales_Representative_Instructions__c}"/>
            </flow:interview>
        </div>
</apex:page>
Iqrar AhmedIqrar Ahmed

Hi Erica,
use this 

{!URLFOR('/apex/theReplacementTransfer')}
Erica Champine 1Erica Champine 1
I have made the change but am still receiving an error.  I tried changing the button to the URL "/apex/createTransferRequest?id={!SCMC__Sales_Order__c.Id}" and that worked to process the Flow but did not take me to the correct Finish Location.
Kris HankinsKris Hankins
Erica,

ls the security for the VF page set to allow the profiles trying to access it?