---
schema_version: "1"
id: 728a36848a3189933b6804b847bb0e7909df2c3b4c3b868dd9fe1b0f6ee7bdbe
title: GetValue
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_recipientGetValue.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_recipientGetValue.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 7e81ff697d719013e9adf449b3c110469d26ec7547009f7f9999ab31f37d0fdc
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# GetValue

## Overview

Return the value of the specified attribute for the recipient

### Syntax

GetValue(1)

### Function Properties

<!--complex table-->

| Ordinal | Type   |              | Description           |
| ------- | ------ | ------------ | --------------------- |
| **1**   | string | **Required** | Name of the attribute |

## Example

This sample code returns the phone number of a recipient.

```
Attribute.GetValue("phoneNumber");
```
