---
schema_version: "1"
id: d7edbdac912a6a646542a05ca122ef8587ad177819f7b0b375462f42652dca65
title: RetrieveLists
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_sendRetrieveLists.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_sendRetrieveLists.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4ab7f6109c5ae4c45d34360cf925c243d86a478a1400229ca87a77d2047d518d
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# RetrieveLists

Retrieves information about the list or lists targeted by a send.

## Syntax

`RetrieveLists(searchCriteria)`

## Function Properties

The `RetrieveLists()` function has the properties listed in this table.

| Property         | Type   | Description                                           |
| ---------------- | ------ | ----------------------------------------------------- |
| `searchCriteria` | Object | Required. Criteria used to search for triggered send. |

The `searchCriteria` object has the properties listed in this table.

| Name             | Type                              | Description                                                                                                                                                                                                                                                                                                                                             |
| ---------------- | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `property`       | String                            | Required. The name of the field to use in the comparison.                                                                                                                                                                                                                                                                                               |
| `simpleOperator` | String                            | Required. The comparison operator to use in the query. Possible values are: <ul><li>`equal`</li><li>`notEqual`</li><li>`lessThan`</li><li>`lessThanOrEqual`</li><li>`greaterThan`</li><li>`greaterThanOrEqual`</li><li>`like`</li><li>`isNull`</li><li>`isNotNull`</li><li>`contains`</li><li>`mustContain`</li><li>`startsWith`</li><li>`in`</li></ul> |
| `value`          | String, number, boolean, or array | The value to compare the specified field to.                                                                                                                                                                                                                                                                                                            |

## Example

To use the `RetrieveLists()` function, include a filter that restricts the results to the ID of a send or multiple sends. This example shows how to retrieve the lists targeted by a single send.

```js
var listsSentTo = Send.RetrieveLists({
  Property: "SendID",
  SimpleOperator: "equals",
  Value: 12345,
});
```
