---
schema_version: "1"
id: e1ddbc0de410b0c248f98e54f3e5cc4e26c59f57f840d727b4579ce42d9d8d09
title: Recipient Functions
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_recipientFunctions.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_recipientFunctions.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 580910b054d99312fd48089d3bcbde797e238803fe752fd86d327822bb61978e
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Recipient Functions

The Query Definition server-side JavaScript functions allow you to manipulate queries via server-side JavaScript in the following ways:

- Create
- Retrieve
- Update
- Delete
- Run

## Load

In your server-side JavaScript code, first load the core library using this syntax:

```
Platform.Load("core","1");
```

Use the sample code below as models for your own server-side JavaScript code.

## Initialize

To interact with a query definition via server-side JavaScript, you must first initialize the object. The code below initializes a query definition with the external key of 'myQueryDef'.

```
var qd = QueryDefinition.Init("myQueryDef");
```

Once you initialize the query definition, you can use the applicable server-side JavaScript functions.
