Created a Visualforce page for my flow so I can define a finishlocation :

<apex:page controller="InventoryRequestController" showHeader="true" sidebar="true">
    <flow:interview name="Inventory_Request_Flow" interview="{!flowinterview}" finishLocation="{!finishURL}">
        <apex:param name="varUserId" value="{!$User.Id}"/>
        <apex:param name="varFirstName" value="{!$User.FirstName}"/>
        <apex:param name="varLastName" value="{!$User.LastName}"/>

finishURL method from Controller:

public PageReference getfinishURL() {
    PageReference p;
    if (flowInterview != null)
    p = new PageReference('/' + flowInterview.newInvReqId + '/e?retUrl=' + flowInterview.newInvReqId);
    p = new PageReference('home/home.jsp');
    return p;

finishLocation successfully sends me to to the edit page of the newly created Record with the retUrl parameter defined (seemingly), but hitting save takes me to SF home page. How can I properly define the retUrl?


1 Answer 1


Looking at how that parameter is cased in other parts of the system, I see retURL. These url parameters are case-sensitive, and code looking for retURL will not find a retUrl parameter.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .