| Methods / Methods for Email and Notifications | |
REST
POST
Sends an email through AgilePoint Server.
https://[domain]:[port]/AgilePointServer/Workflow/SendMail
https://[domain]:[port]/AgilePointService/Workflow/SendMail
| Name | Description |
|---|---|
| None | Not Applicable |
| Name | Description |
|---|---|
Attachments |
|
Body |
|
CC |
|
From |
|
Subject |
|
To |
|
These properties are based on the class SendMailHelper
$("#btnSendMail").click(function () {
var JSONObject = { To: "susan.miller@mydomain.com",
CC: null,
From: "susan.miller@mydomain.com",
Subject: "REST Test App",
Body: "REST Test App Body",
Attachments: null
};
$.ajax({
url: "https://mydomain:9011/AgilePointServer/Workflow/SendMail",
data: JSON.stringify(JSONObject)
});
});
public String SendMail(String To,
String CC, String From, String Subject,
String Body, String Attachments) {
String URI = "http://mydomain:9011/AgilePointServer/Workflow/SendMail";
HTTPOperations ops = new HTTPOperations(domain, this.userName,
password, appID, locale);
JSONObject postData = new JSONObject();
try {
postData.put("To", To);
postData.put("CC", CC);
postData.put("From", From);
postData.put("Subject", Subject);
postData.put("Body", Body);
postData.put("Attachments", Attachments);
return ops.POSTMethod(URI, postData.toString());
} catch (JSONException e1) {
e1.printStackTrace();
}
return "";
}
public string SendMail()
{
string URI = "http://mydomain:9011/AgilePointServer/Workflow/SendMail";
string jsonRequestdata = "{
\"To\":\"" + "milindg90@ymail.com" + "\",
\"CC\":\"" + null + "\",
\"From\":\"" + "milind.gunjan@agilepoint.com" + "\",
\"Subject\":\"" + "milindg90" + "\",
\"Body\":\"" + "com" + "\",
\"Attachments\":\"" + null + "\"}";
HTTPOperations ops = new HTTPOperations(domain, this.userName,
password, appID, locale);
return ops.POSTMethod(URI, "");
}
None.
{
"Attachments":"String content",
"Body":"String content",
"CC":"String content",
"From":"String content",
"Subject":"String content",
"To":"String content"
}
AgilePoint BPMS v5.0 R2 and higher