---
schema_version: "1"
id: 0aa5329704c8a0c6d51d4ec8918815137802b86d5f7089d3c6f64cb24965f1c4
title: Get a List of Flows
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/mc-core/guide/mc-manage-flows/mc-manage-flows-get/mc-manage-flows-get.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud-growth/guide/mc-manage-flows-get.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 19c65eb3024be85e3c1c78ed74dc36a6e85fd2e3e5b01e58774f693cb9f94482
products:
  - Marketing Cloud Next
  - Marketing Cloud
---
# Get a List of Flows

Retrieve a list of flows using the [Flow object](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_visual_workflow.htm) in Metadata API.

## Prerequisite

This procedure uses the Salesforce CLI to interact with Metadata API. Before you begin, complete these prerequisite steps.

1. [Install the Salesforce CLI](https://developer.salesforce.com/tools/salesforcecli).
2. [Create a project](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_create_new.htm).
3. [Authorize your org](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_web_flow.htm).

## Step 1: Create a Manifest File

Before you can retrieve data from Metadata API, you must create a manifest file. This file specifies the type of information that you want to interact with.

1. In your project directory, create a file called `package.xml`.
2. Paste this code into the file.

```xml
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>Flows</name>
    </types>
    <version>60.0</version>
</Package>
```

## Step 2: Retrieve the Flows

After you create the manifest file, you can execute a command to retrieve the flows. The Salesforce CLI connects to your target org and downloads the objects that are specified in the manifest file.

1. At the command line, run this command to retrieve the flows in your org.

```
sf project retrieve start --manifest package.xml
```

The CLI connects to Metadata API and begins to retrieve content.

2. In your project directory, go to the `force-app/main/default/flows` directory. The directory contains an XML file for each flow in your org.

Flows that are associated with campaigns follow the naming format `flow_{campaignId}_{epochTimeMs}.flow-meta.xml`. In this naming format, `{campaignId}` is the unique ID of the campaign ID that the flow is associated with. `{epochTimeMs}` is the date and time when the campaign was created, expressed as a Unix timestamp with milliseconds.
