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
David PoynterDavid Poynter 

URL no longer exists - Visualforce Button Error

Hello All, I am recieving a perplexing error. 

I created a Visualforce page with the following code:

<apex:page standardController="Event">
    <flow:interview name="Create_Meeting_Note"  finishLocation="{!URLFOR('/')}">
        <apex:param name="MeetingID" value="{!ID}" />
    </flow:interview>
</apex:page>

But when a reference it via a custom button, I get the "URL No Longer Exists" error. Any ideas as to why this would be? I have had other visual force pages and custom buttons work just fine recently, and cannot for the life of me figure out why this dirt simple one isn't!
Raj VakatiRaj Vakati
You have to change your code like below  .. YOU NEED TO PASS THE SOME RECORD ID OR URL NOT JUST /
 
<apex:page standardController="Event">
    <flow:interview name="Create_Meeting_Note"  finishLocation="{!URLFOR('/SOME RECORD ID OR PAGE ADDRESS ')}">
        <apex:param name="MeetingID" value="{!ID}" />
    </flow:interview>
</apex:page>

 
Raj VakatiRaj Vakati
like below
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_flows_finishlocation.htm#pages_flows_finishlocation
<apex:page standardController="Event">
    <flow:interview name="Create_Meeting_Note"  finishLocation="/{!ID}">
        <apex:param name="MeetingID" value="{!ID}" />
    </flow:interview>
</apex:page>

 
David PoynterDavid Poynter
Thank you for the help, however I have tried it both ways with no change. To double check I copied your later comment with the finishLocation="/{!ID}" and I recieved the same error.