---
schema_version: "1"
id: 6e0ea60deb39fed71ce59b0cc001a6daa32c9fb535f5ed0020420d5702f8f019
title: Call Dynamic Context Service Invocable Actions from Flows
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/ctx_call_dynamic_invocable_actions.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.ctx_call_dynamic_invocable_actions.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: b80a3798cfa2c3fd43ee9d78619adbc4cb3a49d9dcad8e27bed08caee37a1516
description: Call invocable actions for context definitions that have Apex classes generated.
products:
  - Industry Solutions
  - Cross Cloud
release: "264"
---
# Call Dynamic Context Service Invocable Actions from Flows

Call invocable actions for context definitions that have Apex classes generated.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Developer</strong>, <strong>Enterprise</strong>, <strong>Professional</strong>, and <strong>Unlimited</strong> editions for Industries clouds where Context Service is enabled</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d6636e74">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d6636e74 ">To create a flow:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d6636e74 ">Manage Flow</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d6636e74 ">To invoke context service actions:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d6636e74 ">
              <p>Context Service Admin</p>
              <p>OR</p>
              <p style="margin-bottom:0;">Context Service Runtime</p>
            </td>

          </tr>
        </tbody>
      </table>

1. From Setup, in the Quick Find box, enter Flows, and then select **Flows**.
2. Click **New Flow**.
3. Select a Flow type and then click **Create**.
4. In the Flow Builder, add an **Action** element.
5. Create and update the action element.
    1. In the category section, select **Context Service**.
    2. Select a context service action.
        
        For selecting a dynamic invocable action, search the API name of the context definition and select from the available list of invocable actions.
        
        ![Tip](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-context_service-264-0-0-production-enus/e9dc37f3-cb53-4bc1-be8b-b6873099d0be/images/icon_tip.png)
        
        Tip To view a list of dynamic invocable actions for a context definition, first generate an Apex class for that definition.
    3. Enter a label for the action.
        
        The API name is automatically populated from the label that you enter.
    4. Set input values and output values according to the selected invocable action.
    5. Click **Done**.

#### See Also

- [Apex-Defined Data Type](https://help.salesforce.com/s/articleView?id=platform.flow_concepts_apex_type.htm&language=en_US)
- [Considerations for the Apex-Defined Data Type](https://help.salesforce.com/s/articleView?id=platform.flow_considerations_apex_data_type.htm&language=en_US)