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

Written by 

I am Sakthivel Madesh, a certified Salesforce Advanced Developer & Administrator working on Salesforce Technology since 2011. I am currently working in Techforce Services as Sr. Salesforce Developer. I have worked on multiple technologies Like PHP, Java, Salesforce, I am very passionate about Salesforce and to earn 15x Salesforce Certification. I love Trailhead for learning Salesforce Skill and Become a Trailhead 5x Ranger too. I Love to Learn & Share my Salesforce knowledge to Salesforce Learners/Beginner using My Blog and Salesforce Community.

Leave a Reply

Your email address will not be published. Required fields are marked *

*