Posts

Showing posts with the label invoke

Salesforce Fact #786 | Invoke quick action from LWC

Image
Suppose we have a use case where we need to invoke a quick action from LWC on button click. We can implement the same by wrapping the LWC inside an Aura and using lightning:QuickActionAPI. In this example, we are invoking a Create Record(Contact) quick action from Account detail page. Reference:  https://developer.salesforce.com/docs/component-library/bundle/lightning:quickActionAPI/documentation Attached are the screenshots.

Salesforce Fact #727 | Quick action execution from apex

Image
We can execute quick actions from Apex code using the QuickAction class.  Reference:  https://salesforce.stackexchange.com/questions/320915/run-quick-action-from-batch Note: currently only quick actions of type 'Create a record' and 'Update a record' are supported. Attached is the screenshot.