---
schema_version: "1"
id: 9c997a37731ab6512255a41a17fc8eaade585c3199b28080730a5ee1ef861861
title: Validate
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_emailValidate.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_emailValidate.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1c93570b14f61ef73455ea2274146d0bca33660ad4483baf49bfa60e23a709d1
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Validate

## Overview

Runs validation checks on the initialized email and returns a JSON object indicating the result of the validation and any identified issues

### Syntax

Validate()

## Example

This sample code calls Validate() on the initialized email object and writes out the results from the returned JSON object:

```
var myEmail = Email.Init("myEmail");
var results = myEmail.Validate();
Write(results.Task.ValidationStatus);
Write(results.Task.ValidationMessages);
```
