I built a quick action on Campaign that opens a lightning component. I am trying to pass parameters like, say the Id and the name of the Campaign.
Earlier I built this using Detail Page Button
and executing javascript like so:
sforce.apex.execute("MyController","controller",
{campaignId:"{!Campaign.Id}",
campaignName:"{!Campaign.Name}"});
Is it possible to somehow retrieve those values from the component that gets triggered from the quick action?
Please note, I have no Visual Force page and am not planning on building one.
If this doesn't work can I use a button that opens a lightning App and pass the parameters as a query string then retrieve them somehow from the component?
EDIT I found that I can add implements="force:hasRecordId"
to the component and that will give me the object's Id. Is it possible to pass the name similarly without having to query for the record?