Skip to main content

Posts

Showing posts from October, 2022

How to Call Invocable Actions from Apex

How to Call Invocable Actions from Apex in Salesforce ? In Salesforce Winter 23' release we can now use Invocable Actions in Apex Class. In this blog we will see how we can make use of new Invocable.Action Apex Class in order to use custom or standard Invocable Actions via apex. What are Invocable Actions ? The invocable actions mechanism allows to create custom code and package it into components/actions available in declarative tools, such as flow. It is a simple idea to provide input values that the apex manipulations and transactions and then finally gives the desired output values. New Invocable.Action class has following methods - We will take two examples to use the above methods, 1 for each custom Invocable Action and standard Invocable actions. Call Standard Invocable Actions from Apex Let us take chatterPost as an example for Standard Invocable Actions. Step 1 : Check the type and other input parameters that are needed for chatterPost. Login into Workbench => Utilitie