I have developed a few lightning component quick actions on my sandbox and all was well.
Now I have deployed them to production and I cannot see them when I try to add an action through the object's setup page:
As you can see I get an error: Error: No Lightning Component Quick Actions are available for your organization
.
I hope that I have set the component the right way – this is my markup:
<aura:component implements="force:lightningQuickAction,force:hasRecordId,flexipage:availableForAllPageTypes">
<aura:attribute name="recordId" type="String" />
<aura:attribute name="methodName" type="String" default="defMethod"/>
<c:YH_ExecuteApex refreshTab="true" methodName="{!v.methodName}" params="{!v.recordId}"/>
</aura:component>
Can anyone help me?
Am I doing something wrong?
Best Answer
Eventually the problem was within my inner component - c:YH_ExecuteApex
Because that component was bad, the quick action components where not exposed.
UPDATE:
The bug within the component was a compile problem that was not recognized by me or the org or IDE.
The component was:
The type in line:
<aura:attribute name="returnValue" type="ExecuteApex.ReturnValue" />
- should have neenYH_ExecuteApex_CTRL.ReturnValue
because it is an inner class of my main YH_ExecuteApex_CTRL class.Because of that - all of my components that used YH_ExecuteApex components where not recognized as a quick action.