Generate Apex Classes for Context Definitions

Create Apex classes from context definitions to mirror your definition's metadata and hierarchy in Salesforce Flow without coding.

Where: This change applies to Lightning Experience in Professional, Enterprise, Unlimited, and Developer editions where Context Service is enabled.

Who: To generate and manage the Apex classes, users need the Context Service Admin permission set. To use them in flows, users need the Context Service Runtime and Manage Flow permission sets.

How: Generate an Apex class for a context definition from the Context Definitions page in Setup. Then, in Flow builder, use Apex-defined variables to pass data to or from the definition-specific actions.