6 réponses
The Apex controller has no knowledge of the request that went to the browser, all it has is information that has been passed to the method call. You'll need to get the record in the lightning component, which is what the 'force:hasRecordId' interface is for:https://developer.salesforce.com/blogs/developer-relations/2015/11/building-context-aware-lightning-components.html