• Stefan Fischer
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hello all,

I try to call a flow via a visualforce page. The flow is started from an Account (button and action), submitting the AccountID and simply creates a new object linked to this Accout. 
My goal is to go back to the Account page after the flow completed. It works in Salesforce classic, but not in Lighning and SF1. As soon as I click finish here, I am not redirected to the Account page, but the page just freezes. Only possibility is to click cancel then. 

Any suggestions from you?
Stefan

This is how my code looks like:

<apex:page standardController="Account">
<apex:variable var="getAccountId" value="{!Account.Id}"></apex:variable>
    <flow:interview name="Assessment" finishLocation="{!URLFOR('/'+getAccountId)}">
         <apex:param name="AccountID" value="{!Account.Id}"/>
    </flow:interview>
</apex:page>
Hello all,

I try to call a flow via a visualforce page. The flow is started from an Account (button and action), submitting the AccountID and simply creates a new object linked to this Accout. 
My goal is to go back to the Account page after the flow completed. It works in Salesforce classic, but not in Lighning and SF1. As soon as I click finish here, I am not redirected to the Account page, but the page just freezes. Only possibility is to click cancel then. 

Any suggestions from you?
Stefan

This is how my code looks like:

<apex:page standardController="Account">
<apex:variable var="getAccountId" value="{!Account.Id}"></apex:variable>
    <flow:interview name="Assessment" finishLocation="{!URLFOR('/'+getAccountId)}">
         <apex:param name="AccountID" value="{!Account.Id}"/>
    </flow:interview>
</apex:page>