AMPscript
GetAttributeValue
Validate Your Server-Side JavaScript using WSProxy
Returns the value from a specified attribute or sendable data extension field.
GetAttributeValue(1)
| Ordinal | Type | Description |
|---|---|---|
| 1 | string | Required. The attribute or sendable data extension field to retrieve the value of. |
This example retrieves the email address for a contact and outputs the value to the browser.
1<script runat="server">
2 var contactEmail = Platform.Recipient.GetAttributeValue('EmailAddr');
3 Platform.Response.Write(contactEmail);
4</script>