• David Litton
  • NEWBIE
  • 10 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
So I created a flow.  Setup the standard button that calls on a visualforce page with the finishlocation as the original location... and it works great!  My issue is that we want this button to be in the details as a field... so I've setup that.  The flow runs fine until it gets to the end and repeats itself (and then erroring).

HYPERLINK("/flow/CSD_Activity_Flow?OpportunityId=" & Id,
IMAGE("picture", "Request a Quote"), "_self"

The VF page is setup like:

<apex:page standardController="Opportunity" sidebar="true">
  <div style="float: center; width: 700px; padding: 20px;">
      <flow:interview name="CSD_Activity_Flow" finishLocation="/{!Opportunity.id}">
        <apex:param name="OpportunityId" value="{!Opportunity.id}"/>

    </flow:interview>
  </div>
</apex:page>
So I created a flow.  Setup the standard button that calls on a visualforce page with the finishlocation as the original location... and it works great!  My issue is that we want this button to be in the details as a field... so I've setup that.  The flow runs fine until it gets to the end and repeats itself (and then erroring).

HYPERLINK("/flow/CSD_Activity_Flow?OpportunityId=" & Id,
IMAGE("picture", "Request a Quote"), "_self"

The VF page is setup like:

<apex:page standardController="Opportunity" sidebar="true">
  <div style="float: center; width: 700px; padding: 20px;">
      <flow:interview name="CSD_Activity_Flow" finishLocation="/{!Opportunity.id}">
        <apex:param name="OpportunityId" value="{!Opportunity.id}"/>

    </flow:interview>
  </div>
</apex:page>
So I created a flow.  Setup the standard button that calls on a visualforce page with the finishlocation as the original location... and it works great!  My issue is that we want this button to be in the details as a field... so I've setup that.  The flow runs fine until it gets to the end and repeats itself (and then erroring).

HYPERLINK("/flow/CSD_Activity_Flow?OpportunityId=" & Id,
IMAGE("picture", "Request a Quote"), "_self"

The VF page is setup like:

<apex:page standardController="Opportunity" sidebar="true">
  <div style="float: center; width: 700px; padding: 20px;">
      <flow:interview name="CSD_Activity_Flow" finishLocation="/{!Opportunity.id}">
        <apex:param name="OpportunityId" value="{!Opportunity.id}"/>

    </flow:interview>
  </div>
</apex:page>