You need to sign in to do that
Don't have an account?
Jagadees
[Change owner] link in custom VF page on Leads
I'm trying to build [Change] link next to record owner name on the lead VF page so that the user can re-assign the leads. My lead VF page is a completely custom build page. I'm expecting this functionality to work as in Standard page ie., when the user clicks the [Change] link he/she should be taken to the change ownership page from where he/she should re-assign the lead and the retUrl should take him/her back to the custom page.
I have used the below piece of code found in this forum -
<apex:outputLink value="{!URLFOR($Action.Lead.ChangeOwner,Lead.id)}">[Change]</apex:outputLink>
But it's not working as expected. When I add this code and tested by clicking the output link [Change] it asks me to log in again and gives me an error as -
Stale Session Exception
The page you submitted was invalid for your session. Please try your action again.
Can I get some help here?
I have used the below piece of code found in this forum -
<apex:outputLink value="{!URLFOR($Action.Lead.ChangeOwner,Lead.id)}">[Change]</apex:outputLink>
But it's not working as expected. When I add this code and tested by clicking the output link [Change] it asks me to log in again and gives me an error as -
Stale Session Exception
The page you submitted was invalid for your session. Please try your action again.
Can I get some help here?
Hope you are using Standard controller for Lead.
Please try the below code for changing the owner though visual force page.
let me know if this helps you.
Thanks
Lokesh
All Answers
Hope you are using Standard controller for Lead.
Please try the below code for changing the owner though visual force page.
let me know if this helps you.
Thanks
Lokesh
Thank you, buddy. This works cool :)