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
Nishant Shrivastava 30Nishant Shrivastava 30 

access variable value of the flow in the end of flow

Hi Everyone,
I need variable value geturl from the end of flow but I am not getting the variable value from the end of flow. Please suggest.

VF page :

<apex:page standardController="Case" extensions="GetListViewUrl">
    <flow:interview name="MediaServiceListView" interview="{!TeamView}" finishLocation="{!NewListView}">
    </flow:interview>
</apex:page>

Apex Controller :

public class GetListViewUrl {
    Public case objAcc ;
    public Flow.Interview.MediaServiceListView TeamView { get; set; }
    //Constructor for Controller extension
     public GetListViewUrl(ApexPages.StandardController controller){
     }
    
    public PageReference getNewListView(){
        string listId;
        if(TeamView!=null){
            listId = Teamview.getUrl;
            system.debug(listId);
        }
        Pagereference pg = new Pagereference('https://--uat.lightning.force.com/lightning/o/Case/list?filterName=' + listId);
        pg.setRedirect(true);
        return pg;
    }
    
}
VinayVinay (Salesforce Developers) 
Do you still see issue, also can you elloborate more on this?

Thanks,