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
BillPowell__cBillPowell__c 

Visualforce Page Finish Location Help?

I have a button on a related list that will allow users (via checkboxes) to update a field on the selected related records, launching an autolaunched/headless flow. However, when the flow completes and updates the field, it returns the user to the tab of the parent record. How can I modify either the flow or the VF page to return the user to the parent record that the related list was on instead of the tab? I'm not a developer whatsoever and had a ton of help with this to begin with. Any help would be greatly appreciated. 

Here is the VF Page: 

<apex:page StandardController="Sample_Order_Line_Items__c" tabstyle="Sample_Order_Line_Items__c" recordSetVar="SOLI" >
    <!-- Add below each field you reference in your Flow -->   
    <apex:repeat value="{!SOLI}" var="row" rendered="false">
        {!row.id}
        {!row.Status__c}
    </apex:repeat>
    <!-- Runs your Flow -->   
    <flow:interview name="SOLIComplete"
          finishLocation="{!URLFOR($Action.Sample_Order__c.Tab, $ObjectType.Sample_Order__c)}">
        <apex:param name="Selected" value="{!Selected}"/>
    </flow:interview>
</apex:page>