---
schema_version: "1"
id: d4bfaa5bd2bdf5836cddcfe7a705f5b87fe7b125b49eb288ff237222831725ad
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_triggeredSendRetrieve.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_triggeredSendRetrieve.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 61b6b0fe57efadd1f35c8c86e1d18ea93708a402de94cb3e9bd4f858766ef65e
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Retrieve

Retrieves an array of triggered send objects based on the specified criteria.

## Syntax

`Retrieve(searchCriteria)`

## Function Properties

The `Retrieve()` 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 `Publish()` function, you must first initialize the triggered send object. Next, call the `Publish()` function on the initialized object.

This sample code retrieves a triggered send based on the specified filter criteria:

```js
var results = TriggeredSend.Retrieve({
  Property: "CustomerKey",
  SimpleOperator: "equals",
  Value: "ssjs_tsd_key",
});
```
