You need to sign in to do that
Don't have an account?
Smriti Kumari (Shumpy)
How to get the recordId from the detail page of any sObject in Lightning Experience!
I have a requirement where I need to dynamically get the RecordId in a VF page which is launched on click of a global action in sObject's detail page. As this sObject will be dynamic, I can't use a standard controller. The VF page opens up in an iFrame which doesn't get the Id from the detail page link. I tried URL methods for JavaScript call but with no success.
Does anyone have any idea upon how to retrieve this in Lightning Experience?
This functionality was completed well in SF classic via a button.
Does anyone have any idea upon how to retrieve this in Lightning Experience?
This functionality was completed well in SF classic via a button.
Once done, we can access the record id by:
{!v.recordId}
http://docs.releasenotes.salesforce.com/en-us/winter16/release-notes/rn_lightning_components.htm
All Answers
salesforce me,
Appreciate your feedback. But FYI I can't use a standard controller as Id has to be fetched dynamically. The VF page opens up in an iFrame which doesn't get the Id from the detail page. The functionality mentioned above has already been achieved via a custom button in Salesforce Classic (for the same VF page) but the Lightning Experience doesn't give the Id in the iFrame.
Hi Smriti,
Did you find the solution for your problem? I am also facing the same issue. If you have solved it, can you please explain the solution?
Thanks,
Abhiram
I didn't find a solution to it yet!
Once done, we can access the record id by:
{!v.recordId}
http://docs.releasenotes.salesforce.com/en-us/winter16/release-notes/rn_lightning_components.htm