Home SALESFORCELightning How to call Lightning Web Comopnent from Salesforce QuickActions

How to call Lightning Web Comopnent from Salesforce QuickActions

This post describes about to invoke the Lightning Web Components in QuickActions, as of now there is no possibility to Select Action Type as Lightning Web Component while create a Quick Action and Only we have the option following options.

List of Actions Types while Crating the Salesforce Quick Actions for Object Specific:-

  • Create a Record
  • Send Email
  • Log a Call
  • Custom Visualforce
  • Update a Record
  • Lightning Component  (Only Aura Component)
  • Flow

List of Actions Types while Crating the Salesforce Global Quick Actions:-

  • Create a Record
  • Send Email
  • Log a Call
  • Custom Visualforce
  • Custom Canvas
  • Lightning Component  (Only Aura Component)

Idea raised by me and please upvote: Global and Object Specific Action Type to Allow Lightning Web Component (LWC) –  https://success.salesforce.com/ideaView?id=0873A000000LqWTQA0

Here is the Salesforce Aricles about the Lightning Web Component Supported & Unsupported Components/Tools – https://developer.salesforce.com/docs/component-library/documentation/lwc/get_started_supported_experiences

Solution to Invoke your Lighnting Web Components in the Quick Actions (Either Object Specific Quick Actions or Global Quick Actions) then use with Lightning Component (Aura) to Call with your Lignthing Web Component and below are the simple Example:-

<aura:component implements="force:lightningQuickAction">
    <c:myLightningWebComponentName></c:myLightningWebComponentName>
<aura:component>

Note: make sure to add the force:lightningQuickAction in the implements in Aura Component

Reference Link:

To invoke the Quick Action using API – https://developer.salesforce.com/docs/component-library/bundle/lightning:quickActionAPI/documentation

You may also like

Leave a Comment