GetAlerts Functions
The GetAlerts and GetAlertsSession functions returns alert emails based on the user name. These two functions differ only in respect to parameters for login. For more information, see Login Parameters.
Syntax
The following is the syntax for an HTTP request:
POST /WindchillRiskandReliability12.0/DataEngine.asmx/GetAlerts HTTP/1.1
Host: HostName
Content-Type: application/x-www-form-urlencoded
Content-Length: length

UserName=string&Password=string&GroupName=string
Parameters
The GetAlerts and GetAlertsSession do not use additional parameters.
The following is an example of an HTTP POST request:
POST /WindchillRiskandReliability12.0/DataEngine.asmx/GetAlerts HTTP/1.1
Host: vm-test
Content-Type: application/x-www-form-urlencoded
Content-Length: length
UserName=Bill&Password=passwd&GroupName=Manager
Returns
If the user is authenticated, the alert emails for the user are returned in the AdditionalData tag in JSON format. To easily read these emails, you can paste them into a JSON validator. You can also copy them into Notepad, save the file with an HTML extension, and then close and reopen this file.
<?xml version="1.0" encoding="utf-8"?>
<DataEngineFileListResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.ptc.com/WindchillRiskandReliability/12.0/">
<Success>true</Success>
<AdditionalData>{Returned_Emails]>
If the call fails, the AdditionalData tag provides the reason for the failure.