---
schema_version: "1"
id: 012ff35c58ffb5adc6ace60fc7ad82f85f02844cf3446bb81219ee6f3acdd7cc
title: GetAttributeValue
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_platformFieldAttributeGetAttributeValue.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_platformFieldAttributeGetAttributeValue.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 7c7dd8894f88a173e3424a5ee9abaab89505a28dd4cdaf86701ba297668eb077
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# GetAttributeValue

Returns the value from a specified attribute or sendable data extension field.

## Syntax

`GetAttributeValue(1)`

| Ordinal | Type   | Description                                                                        |
| ------- | ------ | ---------------------------------------------------------------------------------- |
| 1       | string | Required. The attribute or sendable data extension field to retrieve the value of. |

## Example

This example retrieves the email address for a contact and outputs the value to the browser.

```js
<script runat="server">
  var contactEmail = Platform.Recipient.GetAttributeValue('EmailAddr');
  Platform.Response.Write(contactEmail);
</script>
```
