+ Start a Discussion
Admin User 10161Admin User 10161 

Get fields of actual record in a Lightning Component

Hi there,
I have created an Aura Lightning Component which is button that opens an hyperlink.
I want to get the URL from current record of "Lead" via a custom field in called "URL__c". I have tried to use "force:hasRecordId" but I am not able to get the value.
Here is my implementation of my lightning component:
<aura:component implements="lightning:availableForFlowScreens" access="global">
	<center><ui:button label="Open Opportunity" press="{!c.openActionWindow}"/></center>
</aura:component>
({
	openActionWindow : function(component, event, helper) {
        window.open("{!v.URL__c}");
	}
})
Best Answer chosen by Admin User 10161
MagulanDuraipandianMagulanDuraipandian
Check this - http://www.infallibletechie.com/2020/05/how-to-pass-record-id-in-flow-to.html