View definition-specific invocable actions in Salesforce Flow by generating Apex classes
from your context definitions. The Apex classes mirror the metadata and hierarchy of your context
definition, which can be used directly in Salesforce Flow without any coding required.
Required Editions
Available in: Lightning Experience
Available in: Developer, Enterprise, Professional, and
Unlimited editions for Industries clouds where Context Service is
enabled
User Permissions Needed
To generate Apex classes:
Context Service Admin
To create a flow:
Manage Flow
To invoke context service actions:
Context Service Admin
OR
Context Service Runtime
From Setup, in the Quick Find box, enter Context Service, then select
Context Definitions.
Select the context definition for which you want to generate an Apex class.
Click Generate Apex Class.
To view the generated Apex classes
From Setup, in the Quick Find box, enter Apex Class, then select Apex
Class.
Search for the API name of your context definition.
Once an Apex class is generated, it can’t be edited. To delete an Apex class, go to
the context definition page and click Delete Apex Class.
Important Deleting Apex classes can break Flows that use them. Make sure to remove the
associated classes from all your Flow elements.
To refresh the Apex classes of a
context definition you have edited, go to the context definition page and click
Refresh Apex Class.
Important When a custom context
definition is updated, the associated Apex classes are not automatically updated. You must
manually refresh the Apex classes.
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.