---
schema_version: "1"
id: 60ac55055fc9951ac0bed769fa18bff515e596e5a4e323726291d415bf8bfa30
title: Run a Data Processing Engine Definition in Flows
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/dpe_run.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.dpe_run.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 258ad82b837db3e3f13a54677c826592edbb8e1883bf6e3504079f3751e0cde5
description: After you activate a Data Processing Engine definition, run it as part of a business flow or create a flow to run only a definition. You can also run a definition in a scheduled flow.
products:
  - Cross Cloud
release: "264"
---
# Run a Data Processing Engine Definition in Flows

After you activate a Data Processing Engine definition, run it as part of a business flow or create a flow to run only a definition. You can also run a definition in a scheduled flow.

### 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;"><a href="https://help.salesforce.com/s/articleView?id=ind.dpe_editions.htm&amp;release=264.0.0&amp;type=5" title="Review the supported editions and availability for Data Processing Engine (DPE).">View supported editions</a>.</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="d17524e63">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d17524e63 ">To create a business flow:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d17524e63 "><span>
                <a href="https://help.salesforce.com/s/articleView?id=ind.dpe_setup.htm&amp;release=264.0.0&amp;type=5" title="Assign users system permissions, object access, and permission sets that they require to manage, run, and monitor Data Processing Engine (DPE) definitions. User permissions for Data Processing Engine vary based on the runtime platform your company uses to run definitions.">View permissions information.</a>
              </span></td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d17524e63 ">To run a Data Processing Engine definition:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d17524e63 "><span>
                <a href="https://help.salesforce.com/s/articleView?id=ind.dpe_setup.htm&amp;release=264.0.0&amp;type=5" title="Assign users system permissions, object access, and permission sets that they require to manage, run, and monitor Data Processing Engine (DPE) definitions. User permissions for Data Processing Engine vary based on the runtime platform your company uses to run definitions.">View permissions information.</a>
              </span></td>

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

You can’t start two runs of a definition with the same input variable values simultaneously. If your definition doesn’t contain input variables, you can't start two simultaneous runs.

![Warning](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-data_processing_engine-264-0-0-production-enus/80e06924-e6c0-4b82-81cf-e99ccd77d857/images/icon_warning.png)

Warning When you start multiple simultaneous runs, ensure that the runs don't process the same data multiple times and write back duplicate results, or overwrite another run's results.

#### See Also

- [Flow Builder](https://help.salesforce.com/s/articleView?id=platform.flow.htm&type=5&language=en_US)

## Learn About User Context for Running Definitions as Part of Automated Processes

When a definition is run using the custom Data Processing Engine invocable action from a flow or from resources such as Connect APIs and Apex, permissions to run the definition and the permissions to write back results come from two distinct users.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
          <colgroup>
            <col style="width:33.33333333333333%">
            <col style="width:33.33333333333333%">
            <col style="width:33.33333333333333%">
          </colgroup>
          <thead class="slds-text-title_caps ">
            <tr class="">
              <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17524e154">Run Method</th>
              <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17524e157">User Context to Run Definition</th>
              <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17524e160">User Context to Write Back Results</th>
            </tr>
          </thead>
          <tbody>
            <tr class="">
              <td data-label="Run Method" class="slds-cell-wrap" style="vertical-align:top;" headers="d17524e154 ">Flow</td>

              <td data-label="User Context to Run Definition" class="slds-cell-wrap" style="vertical-align:top;" headers="d17524e157 ">
                <ul>
                  <li>If a default workflow user is selected for the org, the definition is run
                    with the permissions of the selected user.</li>

                  <li>When you don't select a default workflow user for your org, Data Processing
                    Engine automatically selects a qualifying user. The selected user must have
                    either the System Administrator profile or an equivalent profile with
                    Customize Application, Modify All Data, and Manage Flows permissions. The user
                    must also be assigned to Data Pipelines Base User or Data Cloud Architect
                    permission sets depending on the definition's runtime.<p>If multiple users
                      meet these criteria, Data Processing Engine selects the first eligible user
                      after sorting them by username.</p>
                  </li>

                </ul>
                <p style="margin-bottom:0;">To change a default workflow user, see <a href="https://help.salesforce.com/s/articleView?id=platform.workflow_defaultuser.htm&amp;language=en_US" target="_blank">Identify Your Salesforce Org’s Default Workflow
                    User</a>.</p>
              </td>

              <td data-label="User Context to Write Back Results" class="slds-cell-wrap" style="vertical-align:top;" headers="d17524e160 ">
                <ul>
                  <li>If a writeback user is selected for a Writeback Object node, the node's
                    results are written back with the permissions of the selected user.</li>

                  <li>If a writeback user isn't selected for a Writeback Object node, the
                    definition automatically selects the user who ran the definition as the
                    writeback user of the node.</li>

                </ul>
              </td>

            </tr>
            <tr class="">
              <td data-label="Run Method" class="slds-cell-wrap" style="vertical-align:top;" headers="d17524e154 ">Invocable action</td>

              <td data-label="User Context to Run Definition" class="slds-cell-wrap" style="vertical-align:top;" headers="d17524e157 ">The definition is run with the permissions of the user that invoked the
                action.</td>

              <td data-label="User Context to Write Back Results" class="slds-cell-wrap" style="vertical-align:top;" headers="d17524e160 ">
                <ul>
                  <li>If a writeback user is selected for a Writeback Object node, the node's
                    results are written back with the permissions of the selected user.</li>

                  <li>If a writeback user isn't selected for a Writeback Object node, the
                    definition automatically selects the user who ran the definition as the
                    writeback user of the node.</li>

                </ul>
              </td>

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

When running a definition, Data Processing Engine doesn't verify whether the users have the required access to the data source objects or the writeback objects of the definition. For both users, make sure that the users have the required access to the data sources and the writeback objects. To learn about the permissions required to run definitions and write back results, see [Data Processing Engine Setup](https://help.salesforce.com/s/articleView?id=ind.dpe_setup.htm&release=264.0.0&type=5 "Assign users system permissions, object access, and permission sets that they require to manage, run, and monitor Data Processing Engine (DPE) definitions. User permissions for Data Processing Engine vary based on the runtime platform your company uses to run definitions.").

## Add Data Processing Engine Action in Flows

1. From Setup, in the Quick Find box, enter Flows, and then select **Flows**.
2. Click **New**.
3. In the New Flow window, select a flow type.
4. Select a layout.
5. Drag the **Action** element onto the canvas.
6. In the New Action window:
    
    1. In the Category section, select **Data Processing Engine**.
    2. Enter the Data Processing Engine definition that you want to run, and then select it.
        
        The name of each definition is appended with the name of the process type selected when creating a definition. The process type determines how the definition processes data. The license associated with each process type decides how Data Processing Engine must process data in your definition.
    3. Specify the value of the input variables that you defined in the Data Processing Engine definition.
    4. Click **Done**.
    
    ![Flow action to run a Data Processing Engine definition.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-data_processing_engine-264-0-0-production-enus/80e06924-e6c0-4b82-81cf-e99ccd77d857/data_processing_engine/images/data_processing_engine_flow_schedule.png)
7. Save your work, and name your flow.
8. Activate your flow.
9. If your flow isn’t scheduled, run the flow by clicking **Run**.
    
    If your flow is scheduled, the definition runs based on the schedule you set.

After the definition runs, use Monitor Workflow Services to track its progress and status.