+ Start a Discussion
sunny.sfdcsunny.sfdc 

Error deleting Event from Visualforce $Action

Hi

I have overridden the delete button of Event object to a visualforce page:
<apex:page standardController="Event" action="{!URLFOR($Action.Event.Delete,Event.Id,[retURL='/home/home.jsp'])}">
    <apex:outputText value="Record Deleted!"/>
</apex:page>
But when I click on the delete button on the Event popup on Homepage, I am getting this error:
The link you followed wasn’t valid for your session. Return to the previous page, refresh it, and try again.
Please let me know if anybody had experienced this error and how to resolve it!

TIA