Ramana,
You can take references from my code.
Vf page
<apex:page showHeader="false" sidebar="false" >
<apex:includeLightning />
<div id="lightning" />
<script>
$Lightning.use("c:SeatimeSchedulerBookingAPP", function() {
$Lightning.createComponent("c:SeatimeSchedulerBooking",
{
"recordId" :"{!$CurrentPage.parameters.recordId}"
},
"lightning",
function(cmp) {
console.log('Component Loaded');
});
});
</script>
</apex:page>
App Name: SeatimeSchedulerBookingAPP
component Name: SeatimeSchedulerBooking
Component:
<aura:attribute name="recordId" type="string"/>
from vf page record id come to this AccIDFromVfPage and then you can use it
Aura controller:
component.get('v.recordId')
please let me know it is working or not??
Please mark it as the Best Answer so that other people would take reference from it.
Thank You
2 respuestas