---
schema_version: "1"
id: d1c6e7c4a6cd627d9a7eac144521857c9ecfc7f961401b6f59d952f4ed45d59c
title: Retrieve
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_dataExtensionRetrieve.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_dataExtensionRetrieve.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: e6197da338a49503b0b8607f5d0700fd0822f100d6f651165efa8fd4a6f21bf0
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Retrieve

## Overview

Retrieves an array of data extension objects based on the specified criteria

### Syntax

Retrieve(1, 2)

### Function Properties

<!--complex table-->

| Ordinal | Type    |              | Description                                                                  |
| ------- | ------- | ------------ | ---------------------------------------------------------------------------- |
| **1**   | string  | **Required** | Critieria used to search for data extension                                  |
| **2**   | boolean | **Required** | Directs retrieve to search all accounts accessible to the authenticated user |

Limit your data extension external keys to 36 characters to help ensure all further processes function correctly.

## Examples

This sample code retrieves data extensions based on the specified filter criteria:

```
var results = DataExtension.Retrieve({Property:"CustomerKey",SimpleOperator:"equals",Value:"myDEKey"});
```
