Override Edit button on Opp with Page Assignments is creating link invalid for session error

  • 2
  • Problem
  • Updated 3 years ago
  • Solved
Archived and Closed

This conversation is no longer open for comments or replies and is no longer visible to community members. The community moderator provided the following reason for archiving: Problem resolved with Rockaway Point Release Iteration 6

Hi - we have overriden the Edit button on Opportunities with the following VF page (we're using Page Assignments):
<apex:page standardController="Opportunity"  action="{!redirect}&actiontype=Edit&objecttype=Opportunity" extensions="skuid.Redirects"/>
However, when someone clicks the Edit button on the old layout, they receive the following error instead of going to the standard SFDC edit page - regardless of whether they have the page assignment or not:
"The link you followed wasn't valid for your session. Return to the previous page, refresh it and try again."
What have we missed in the set up to allow us to enable the Edit override again?
Photo of Joe Ort

Joe Ort

  • 2,266 Points 2k badge 2x thumb

Posted 3 years ago

  • 2
Photo of Joe Ort

Joe Ort

  • 2,266 Points 2k badge 2x thumb
Bump
Photo of Joe Ort

Joe Ort

  • 2,266 Points 2k badge 2x thumb
Bump
Photo of Zach McElrath

Zach McElrath, Employee

  • 51,588 Points 50k badge 2x thumb
What is the URL that users are sent to when they get this message?
Photo of Ben Knecht

Ben Knecht

  • 946 Points 500 badge 2x thumb
Photo of Zach McElrath

Zach McElrath, Employee

  • 51,588 Points 50k badge 2x thumb
Ben and Joe,

This looks like a bug introduced by Salesforce's Summer 16 release - we'll work to get this resolved ASAP.

In the meantime, there is an easy workaround --- change the Visualforce Override page for the Opportunity Edit action to be the following instead, using the "Component" override method:

<apex:page standardController="Opportunity" tabStyle="Opportunity" title="Edit {!$ObjectType.Opportunity.label}: {!Opportunity.Name}"
extensions="skuid.Redirects" action="{!IF(canUseSkuid,'',redirect)}"
sidebar="false" readOnly="true" docType="html-5.0">
    <skuid:page objecttype="Opportunity" actiontype="Edit"/>
</apex:page>

When the bug is resolved we'll let you know and you can go back to the former syntax.
(Edited)
Photo of Ben Knecht

Ben Knecht

  • 946 Points 500 badge 2x thumb
Zach - I may have spoke too soon. For our Users without Skuid Licenses, they get the insufficient privileges error. Any way to change the VF markup to account for our users without a Skuid license??
Photo of Zach McElrath

Zach McElrath, Employee

  • 51,588 Points 50k badge 2x thumb
Ben, I edited my comment earlier to change the recommended override syntax. Use the updated version above (the one that includes a <skuid:page> tag), this should work for all scenarios.
Photo of Ben Knecht

Ben Knecht

  • 946 Points 500 badge 2x thumb
Looks like that worked - Thanks again Zach, appreciate the help
Photo of Ben Knecht

Ben Knecht

  • 946 Points 500 badge 2x thumb
Zach, that worked perfectly - users without the page assignment are able to edit in the standard view and users with the assignments are directed to the right page. Thanks a million, this was a huge help!
Photo of Ben Knecht

Ben Knecht

  • 946 Points 500 badge 2x thumb
This reply was created from a merged topic originally titled Edit Override VF Markup Not Working.

I'm trying to override the standard Edit button on the Opportunity Object using page assignments (we need some people to be redirected to the skuid page and some to be redirected to the standard page).

The VF Markup I'm using is: 

<apex:page standardController="Opportunity" action="{!redirect}&actiontype=Edit&objecttype=Opportunity" extensions="skuid.Redirects"/>

Users with the page assignment are redirected to the Skuid page correctly, but for people without the page assignment, they get the error attached.

Any idea what's going on?
Photo of Zach McElrath

Zach McElrath, Employee

  • 51,588 Points 50k badge 2x thumb
Salesforce appears to have resolved this issue on their own as of Monday June 13, 2016.
Photo of Karen Waldschmitt

Karen Waldschmitt, Official Rep

  • 8,700 Points 5k badge 2x thumb
Hi~

This issue has been resolved in Rockaway Point Release - Iteration 6 and is now available from the Skuid Releases page: http://www.skuidify.com/skuidreleases.

Thanks! 
Karen

This conversation is no longer open for comments or replies.