AMPscript
Add
Check Content
Remove
Retrieve
Update
Validate
Validate Your Server-Side JavaScript using WSProxy
Runs validation checks on the initialized email and returns a JSON object indicating the result of the validation and any identified issues
Validate()
This sample code calls Validate() on the initialized email object and writes out the results from the returned JSON object:
1var myEmail = Email.Init("myEmail");
2var results = myEmail.Validate();
3Write(results.Task.ValidationStatus);
4Write(results.Task.ValidationMessages);