Newer Version Available
How Are the Publisher and Quick Action APIs Different?
The user interface in your org can dictate which development tools you can use to
interact with actions. In Salesforce Classic, you use the Salesforce Classic Publisher
JavaScript APIs with Visualforce components to interact with actions. In Lightning Experience,
you use the lightning:quickActionAPI component to call the
Lightning Quick Action JavaScript APIs to interact with actions.
| Different How? | Salesforce Classic Publisher JavaScript APIs | Lightning Quick Action JavaScript APIs |
|---|---|---|
| Implementation |
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: Then you can reference the Quick Action APIs in your controller code. |
| Supported Actions, Apps, and Pages | Works with any quick action on a record page in Salesforce Classic apps for objects that are feed-enabled. Supports apps with standard navigation and console navigation. | Works with any quick actions on a record page in any Lightning Experience app. Supports apps with standard navigation and console navigation. |
| 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. |