You need to sign in to do that
Don't have an account?
Brian11
How to fire global actions from a Lightning Component
I am trying to use a button inside a lightning component to open a global action. Is this possible?
Ultimately the behavior I am looking for is the slide up from bottom left that a global action has. I cant find anything in the docs that has this feature. I keep running into quickAction api and the utility Api.
<aura:component implements="force:appHostable, flexipage:availableForAllPageTypes, flexipage:availableForRecordHome, force:hasRecordId" access="global"> <lightning:quickActionAPI aura:id="quickActionAPI" /> <lightning:button label="Select Update Case Action" onclick="{!c.fireGlobal}" /> </aura:component> // Controller fireGlobal: function (cmp, event, helper) { var actionAPI = cmp.find("quickActionAPI"); // New Contact is a global action var args = { actionName: "NewContact" }; actionAPI.invokeAction(args); }
Nothing happens. The global action doesnt fire. I am not sure if it only happens with quick action buttons and not global actions.
If it worked for you would you mind sharing some example code?
No I did not find a solution yet. Can you share your example?