Where: This change applies to Lightning Experience and Salesforce Classic in Group, Professional, Enterprise, Performance, Unlimited, and Developer editions.
To implement, load the publisher script in your Visualforce page or component. For example:
Then you can reference the Publisher APIs through the Sfdc.canvas.publisher object. For example:
To implement, use the component lightning:quickActionAPI in your custom Lightning component. For example:
<aura:component implements="flexipage:availableForRecordHome" description="My lightning component"> <lightning:quickActionAPI aura:id="quickActionAPI"/> </aura:component>
Then you can reference the Quick Action APIs in your controller code.
|Supported actions, pages, and apps||Works with any quick action on a record page in Salesforce Classic apps for objects that are feed-enabled.||Works with any quick action on a record page in any Lightning Experience app.|
|Available methods||Provides the following methods:
||Provides the following methods:
|Lightning Experience and Salesforce Classic support||
Works in Salesforce Classic and Lightning Experience.
Works only in Lightning Experience.
Here are a few considerations for working with the Lightning Quick Action APIs.