---
schema_version: "1"
id: 414e535715a8189bd337f7810c282346daa1179e0b3846529eb98f540027ee30
title: FlowVersionView
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_flowversionview.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_flowversionview.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 62c1da370991c2fb3af784b71a430941076564442353a39ff54e4267ea6a69f4
description: Represents the version of a flow definition. This object is available in API version 46.0 and later.
---
# FlowVersionView

Represents the version of a flow definition. This object is available in API version 46.0 and later.

## Supported Calls

describeSObjects(), query()

## Fields

<table class="featureTable sort_table" summary="">


          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d968639e73">Field</th>

              <th class="featureTableHeader  " id="d968639e76">Details</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d968639e73" data-title="Field"><span class="keyword parmname">ApiVersion</span></td>

              <td class="entry" headers="d968639e76" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">double</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The API version for the flow definition. Every flow
                    version has an API version specified at creation.<p class="p">This
                      field is available in API version 50.0 and
                      later.</p>
                  </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d968639e73" data-title="Field"><span class="keyword parmname">ApiVersionRuntime</span></td>

              <td class="entry" headers="d968639e76" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">double</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The API version for running the flow. This value
                    determines which versioned run-time behavior
                    improvements are adopted by the flow version.<p class="p">If not
                      specified when the flow or flow version is created,
                      the latest available API version is used as the API
                      version for running the flow. When an existing flow
                      is saved as a new flow or flow version, the existing
                      flow’s run-time API version is used in the new flow
                      or flow version.</p>
                    <p class="p">This field is available in
                      API version 50.0 and later.</p>
                  </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d968639e73" data-title="Field"><span class="keyword parmname">AreMetricsLoggedToDataCloud</span></td>

              <td class="entry" headers="d968639e76" data-title="Details">
                <a name="dl_y1k_cx1_ndc"><!-- --></a>
                <dl class="dl detailList" id="dl_y1k_cx1_ndc">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">boolean</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Defaulted on create, Filter, Group, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Indicates whether this flow’s metrics are logged in Data
                    Cloud. The default value is false. This field is
                    available in API version 63.0 and later. </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d968639e73" data-title="Field"><span class="keyword parmname">CapabilityType</span></td>

              <td class="entry" headers="d968639e76" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">string</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The capability that integrates with the flow. An example
                    value is <samp class="codeph nolang">PromptTemplateType://SalesEmail</samp>.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d968639e73" data-title="Field"><span class="keyword parmname">CapacityCategory</span></td>

              <td class="entry" headers="d968639e76" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">picklist</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Restricted picklist, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The category that determines the usage limits of the
                    flow. Possible values are:<ul class="ul bulletList">
                      <li class="li">Marketing Cloud Flow</li>

                    </ul>
                  </dd>


                </dl>

                <p class="p">This field is available in API version 62.0 and later.</p>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d968639e73" data-title="Field"><span class="keyword parmname">Description</span></td>

              <td class="entry" headers="d968639e76" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">string</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Flow version information, specified by the org’s
                    admin.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d968639e73" data-title="Field"><span class="keyword parmname">DurableId</span></td>

              <td class="entry" headers="d968639e76" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">string</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The ID of the flow version.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d968639e73" data-title="Field"><span class="keyword parmname">FlowDefinitionViewId</span></td>

              <td class="entry" headers="d968639e76" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">string</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The ID of the flow definition.</dd>

                  <dd class="dd">This field s a relationship field.</dd>



                  <dt class="dt dlterm">Relationship Name</dt>

                  <dd class="dd">FlowDefinitionView</dd>



                  <dt class="dt dlterm">Relationship Type</dt>

                  <dd class="dd">Lookup</dd>



                  <dt class="dt dlterm">Refers To</dt>

                  <dd class="dd">FlowDefinitionView</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d968639e73" data-title="Field"><span class="keyword parmname">IsSwingFlow</span></td>

              <td class="entry" headers="d968639e76" data-title="Details">
                <a name="dl_rgk_kmz_4dc"><!-- --></a>
                <dl class="dl detailList" id="dl_rgk_kmz_4dc">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">boolean</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Defaulted on create, Filter, Group, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Indicates whether the flow is built with Desktop Flow
                    Designer. <p class="p">This field is available in API version 49.0
                      and later.</p>
                    <p class="p">Default: false</p>
                  </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d968639e73" data-title="Field"><span class="keyword parmname">IsTemplate</span></td>

              <td class="entry" headers="d968639e76" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">boolean</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Defaulted on create, Filter, Group, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Indicates whether the process or flow is a template.
                    When installed from managed packages, processes and
                    flows can’t be viewed or cloned by subscribers because
                    of intellectual property (IP) protection. But when those
                    processes and flows are templates, subscribers can open
                    them in a builder, clone them, and customize the clones.
                    Available in API version 46.0 and later.<p class="p">Default:
                      false</p>
                  </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d968639e73" data-title="Field"><span class="keyword parmname">Label</span></td>

              <td class="entry" headers="d968639e76" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">string</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The label of the flow version.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d968639e73" data-title="Field"><span class="keyword parmname">ProcessType</span></td>

              <td class="entry" headers="d968639e76" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">picklist</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Restricted picklist, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The type of the flow. Valid values are:<ul class="ul bulletList">
                      <li class="li">
                        <samp class="codeph nolang">ActionableEventManagementFlow</samp>—A
                        flow that triggers an actionable event
                        orchestration process in the background and
                        automatically executes different types of actions
                        based on the event type. This value is available
                        in API version 62.0 and later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">ActionCadenceAutolaunchedFlow</samp>—A
                        flow executed when a user completes a cadence
                        step. This value is available in API version 56.0
                        and later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">ActionCadenceStepFlow</samp>—A screen
                        flow used as a cadence step. This value is
                        available in API version 56.0 and later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">ActivityObjectMatchingFlow</samp>—A flow
                        that launches when Einstein Activity Capture
                        detects and captures a new activity, such as an
                        email. This type of flow runs in the background
                        without user interaction. This value is available
                        with Sync Email as Salesforce Activity in API
                        version 64.0 and later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">Appointments</samp>—A flow for Lightning
                        Scheduler. This value is available in API version
                        44.0 and later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">ActivityObjectMatchingFlow</samp>—A flow
                        that launches when Einstein Activity Capture
                        detects and captures a new activity, such as an
                        email. This type of flow runs in the background
                        without user interaction. This value is available
                        with Sync Email as Salesforce Activity in API
                        version 63.0 and later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">ApprovalWorkflow</samp>—An orchestration
                        for approvals. This value is available in API
                        version 62.0 and later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang" id="processtype_autolaunched"><a name="processtype_autolaunched"><!-- --></a>AutoLaunchedFlow</samp>—A flow that
                        doesn’t require user interaction.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">CheckoutFlow</samp>—A flow used in
                        Lightning B2B Commerce to create a checkout in a
                        store. This value is available in API version 48.0
                        and later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">ContactRequestFlow</samp>—A flow that
                        lets customers request that customer support get
                        back to them. This flow is used to create contact
                        request records. This value is available in API
                        version 45.0 and later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">CustomerLifecycle</samp>—A
                        Salesforce Surveys flow that lets you associate
                        survey questions with different stages in customer
                        lifecycles. This value is available in API version
                        49.0 and later and only when the Customer
                        Lifecycle Designer license is enabled.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">CustomEvent</samp>—A process that is
                        invoked when it receives a platform event message.
                        In the UI, it’s an event process. This value is
                        available in API version 41.0 and later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">DataCaptureFlow</samp>—A flow that
                        configures the Form tab on Work Order Overview or
                        the related list for a service appointment or a
                        work order line item. This value is available in
                        API version 62.0 and later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">DcvrFrameworkDataCaptureFlow</samp>—A
                        screen flow that presents assessment questions
                        from Discovery Framework. Launches when invoked by
                        a user on a mobile device. This type of flow
                        collects or displays information, requires user
                        interaction, and works offline or online. This
                        value is available in API version 62.0 and
                        later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">FieldServiceMobile</samp>—A flow for the
                        Field Service mobile app. This value is available
                        in API version 39.0 and later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">FieldServiceWeb</samp>—A flow for
                        embedded Appointment Booking. Its UI label is
                        Field Service Embedded Flow. This value is
                        available in API version 41.0 and later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang" id="processtype_flow"><a name="processtype_flow"><!-- --></a>Flow</samp>—A flow
                        that requires user interaction because it contains
                        one or more screens or local actions, choices, or
                        dynamic choices. In the UI and Salesforce Help,
                        it’s a screen flow. Screen flows can be launched
                        from the UI, such as with a flow action, Lightning
                        page, or web tab.
                      </li>

                      <li class="li"><span class="ph" id="enumprocesstype_fsclending"><a name="enumprocesstype_fsclending"><!-- --></a><samp class="codeph nolang" id="processtype_fsclending"><a name="processtype_fsclending"><!-- --></a>FSCLending</samp>—A flow for Financial
                          Services Cloud Mortgage. This value is available
                          in API version 46.0 and later.</span></li>

                      <li class="li">
                        <samp class="codeph nolang">IdentityUserRegistrationFlow</samp>—A
                        flow to handle user registration and updates for
                        single sign-on with the authentication provider
                        framework. Available in API version 64.0 and
                        later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">IndicatorResultFlow</samp>—A flow for
                        Outcome Management that calculates and creates
                        indicator results for a selected indicator
                        performance period. This value is available with
                        the Outcome Management license in API version 60.0
                        and later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">IndividualObjectLinkingFlow</samp>—A
                        screen flow that helps search for contacts, leads,
                        person accounts, and employees and links them to
                        support interactions. This value is available in
                        API version 58.0 and later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">InvocableProcess</samp>—A process
                        that can be invoked by another process or the
                        Invocable Actions resource in REST API. This value
                        is available in API version 38.0 and
                        later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">LoyaltyManagementFlow</samp>—A flow
                        for the Loyalty Management app and can be invoked
                        by loyalty program processes. This value is
                        available in API version 54.0 and later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">PromptFlow</samp>—A flow for Prompt
                        Builder. Pass data between Prompt Builder and the
                        flow. This value is available in API version 60.0
                        and later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">RoutingFlow</samp>—A flow for
                        Salesforce Omni-Channel routing and other business
                        logic. This value is available in API version 52.0
                        and later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">StageManagementEvaluationFlow</samp>—A
                        flow for evaluating custom criteria for a stage or
                        step in Stage Management. This value is available
                        in API version 63.0 and later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">Survey</samp>—A flow for Salesforce
                        Surveys. From the UI, this type of flow is created
                        in Survey Builder. This value is available in API
                        version 42.0 and later.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">SurveyEnrich</samp>—A Salesforce
                        Surveys flow that uses the Survey Data Mapper.
                        From the UI, this type of flow is created in the
                        Survey Builder and requires an associated survey
                        flow type. This value is available in API version
                        49.0 or later and only when the Customer Lifecycle
                        Designer license is enabled.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">Workflow</samp>—A process that is
                        invoked when a record is created or edited. In the
                        UI and Salesforce Help, it’s a record change
                        process.
                      </li>

                    </ul>
                    <p class="p">These values are reserved for future use.</p>
                    <ul class="ul bulletList">
                      <li class="li"><samp class="codeph nolang">ActionCadenceFlow</samp></li>

                      <li class="li"><samp class="codeph nolang">ActionPlan</samp></li>

                      <li class="li"><samp class="codeph nolang">ActivitySmartMatchingFlow</samp></li>

                      <li class="li"><samp class="codeph nolang">AppProcess</samp></li>

                      <li class="li"><samp class="codeph nolang">CartAsyncFlow</samp></li>

                      <li class="li"><samp class="codeph nolang">DigitalForm</samp></li>

                      <li class="li"><samp class="codeph nolang">Journey</samp></li>

                      <li class="li"><samp class="codeph nolang">JourneyBuilderIntegration</samp></li>

                      <li class="li"><samp class="codeph nolang" id="flow_process_loginflow"><a name="flow_process_loginflow"><!-- --></a>LoginFlow</samp></li>

                      <li class="li"><samp class="codeph nolang">ManagedContentFlow</samp></li>

                      <li class="li"><samp class="codeph nolang">OrchestrationFlow</samp></li>

                      <li class="li"><samp class="codeph nolang">RecommendationStrategy</samp></li>

                      <li class="li"><samp class="codeph nolang">SalesEntryExperienceFlow</samp></li>

                      <li class="li"><samp class="codeph nolang">TransactionSecurityFlow</samp></li>

                      <li class="li"><samp class="codeph nolang">UserProvisioningFlow</samp></li>

                    </ul>
                    <p class="p">This value has significant impact on validation
                      when saving the flow and on the flow’s runtime
                      behavior. Don’t change this value unless you
                      understand the flow properties of the specified
                      type.</p>
                  </dd>


                </dl>

                <p class="p">Across flow versions, you can change the type only from <samp class="codeph nolang">Flow</samp> to <samp class="codeph nolang">AutoLaunchedFlow</samp> or vice versa.
                  Before you change the flow type, make sure that the flow
                  contains only elements, resources, and functionality that the
                  new flow type supports.</p>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d968639e73" data-title="Field"><span class="keyword parmname">RunInMode</span></td>

              <td class="entry" headers="d968639e76" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">picklist</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Restricted picklist, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The mode that the flow runs in. Valid values are:<ul class="ul bulletList">
                      <li class="li">DefaultMode — The flow version runs in
                        system or user context, depending on how the flow
                        is launched.</li>

                      <li class="li">SystemModeWithSharing — The flow version
                        always runs in system mode with sharing. The flow
                        respects org-wide default settings, role
                        hierarchies, sharing rules, manual sharing, teams,
                        and territories. But it doesn’t respect object
                        permissions, field-level access, or other
                        permissions of the running user. </li>

                    </ul>
                  </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d968639e73" data-title="Field"><span class="keyword parmname">Status</span></td>

              <td class="entry" headers="d968639e76" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">picklist</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Restricted picklist, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The flow’s status.<ul class="ul bulletList">
                      <li class="li"><samp class="codeph nolang">Active</samp></li>

                      <li class="li"><samp class="codeph nolang">Draft</samp></li>

                      <li class="li"><samp class="codeph nolang">Obsolete</samp></li>

                      <li class="li"><samp class="codeph nolang">InvalidDraft</samp></li>

                      <li class="li"><samp class="codeph nolang">UnderReview</samp></li>

                    </ul>
                  </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d968639e73" data-title="Field"><span class="keyword parmname">VersionNumber</span></td>

              <td class="entry" headers="d968639e76" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">int</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The flow’s version number.</dd>


                </dl>

              </td>

            </tr>

          </tbody>

        </table>

## Usage

Use this object to query information about flow versions. A query must be filtered by DurableId or FlowDefinitionViewId to get results.