Getting Started with Salesforce Quick Action APIs – Part 1 (Invoke using custom button)

For so long everybody requesting me to post on Salesforce Quick Action APIs as there is very little documentation and often the documentation does not provide details on some critical features and their implementation.

So here I am with Quick Action APIs – Part 1 where we will focus on how to call/invoke any Quick Action from Custom Lightning Aura Component.

Note: For Quick Action APIs to work the requested component should be present on the record current screen from where this action will invoke else system will through error ☹️

Below is simple Lightning Aura Component - Screen and ControllerJS

The key items are: 
  • lightning:quickActionAPI - Used for including Quick Action API in a component
  • setActionFieldValues - Promise function used for calling and setting default values
  • invokeAction - Its calls action submit automatically upon successful execution of method "setActionFieldValues"


Comments

Popular posts from this blog

Getting Started with Salesforce Quick Action APIs – Part 2 (Automatically populate fields with custom data values)

Getting Started with Salesforce Quick Action APIs – Part 4 (Email Action with email template)