6

I created a sample Lightning Component quick action as outlined in the documentation, Configure Components for Custom Actions.

<aura:component implements="force:lightningQuickAction">

    <!-- Very simple addition -->

    <ui:inputNumber aura:id="num1"/> +
    <ui:inputNumber aura:id="num2"/>

    <br/>
    <ui:button label="Add" press="{!c.clickAdd}"/>

</aura:component>

I then created a global action pointing to my Lightning component. So far, so good.

enter image description here

The action shows up as expected in the standard layout editor when I view the Salesforce1 & Lightning Actions in either an object page layout or in Global Actions > Publisher Layouts.

enter image description here

When I add the action to a page layout in this way, to the Salesforce1 and Lightning Experience Actions section of the layout, it appears in Lightning Experience as expected. Yay!

enter image description here

However, if I create a Lightning "App Page" in Lightning App Builder, my Lightning Component quick action doesn't appear in the list of available actions. All global Create a Record and Log a Call type actions appear, but the Lightning Component action does not.

enter image description here

enter image description here

Has anyone been able to add a Lightning Component quick action to their Lightning App pages in Lightning App Builder?

UPDATE: I have tried implementing force:availableForAllPageTypes and force:appHostable (together and separately) - these did not work.

  • Can you please share your code to see if all is ok? did you implement force:appHostable? – Itai Shmida Feb 19 '17 at 13:53
  • I have shared the code and screenshots. I tried implementing - at different times - force:appHostable and flexipage:availableForAllPageTypes (which seemed like the more likely solution since Lightning App pages in Lightning App Builder are flexipages). Neither worked. – shannonsans Feb 19 '17 at 18:15
  • Try adding flexipage:availableForAllPage and see if that helps. – naruto-sfdc Feb 19 '17 at 20:24
  • Tried that (see my previous comment) - didn't help. – shannonsans Feb 19 '17 at 20:29
  • looks like only global actions are available to the quick action from app builder. I replicated the same issue in my dev box. – naruto-sfdc Feb 19 '17 at 21:27
2

This isn't supported in App Builder yet. It's definitely on our radar and is something we'd like to fix in a near term release (safe harbor).

  • Just thought of this - since it's basically just a flexipage, could I add it manually through the MD API? – shannonsans Feb 28 '17 at 16:40
  • 4
    A year later, it seems still not to be working. – Christian Szandor Knapp Jan 16 at 10:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.