<aura:component controller="QuickContactController" implements="force:appHostable,flexipage:availableForAllPageTypes,force:hasRecordId" >
<ltng:require styles="{!$Resource.Lightning+'/assets/styles/salesforce-lightning-design-system.css'}"/>
<aura:attribute name="recordId" type="Id" />
<aura:attribute name="account" type="Account"/>
<aura:attribute name="newContact" type="Contact" default="{'sobjectType':'contact'}"/>
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
...
Controller :
({
doInit : function(component, event, helper)
{
// Prepare the action to load account record
alert(component.get("v.recordId"));
}
)}
I got null. I hit the url with the right account id https://instance/namespace/contactListApplication.app?ID=0017F000004PnrMQAS
I read article that it inject the current page id to the attribute recordId. But I got null. Any Idea ? what I am missing here ? Please help me.
https://myapp--crm.lightning.force.com/one/one.app#/sObject/003W000000QzKjcIAF/view