[SalesForce] Cannot see the lightning component quick actions

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:

enter image description here

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:

<aura:component controller="YH_ExecuteApex_CTRL">

    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>

    <aura:attribute name="returnValue" type="ExecuteApex.ReturnValue" />
    <aura:attribute name="methodName" type="String" />
    <aura:attribute name="params" type="String" />
    <aura:attribute name="refreshTab" type="boolean" />
    <aura:attribute name="msgBody" type="String" />
    <aura:attribute name="errMsg" type="String" />
    <aura:attribute name="successMsg" type="String" />

    <div class="slds-p-around--xx-large">
        {!v.msgBody}
    </div>

</aura:component>

The type in line: <aura:attribute name="returnValue" type="ExecuteApex.ReturnValue" /> - should have neen YH_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.

Related Topic