| Methods / Methods for Email Templates | |
REST
POST
Adds an email template to the AgilePoint system.
https://[domain]:[port]/AgilePointServer/Admin/AddEMailTemplate
https://[domain]:[port]/AgilePointService/Admin/AddEMailTemplate
| Name | Description |
|---|---|
| None | Not Applicable |
| Name | Description |
|---|---|
TemplateOwnerID |
|
MailTemplateXML |
|
$("#btnAddEMailTemplate").click(function () {
var JSONObject = {
TemplateOwnerID: null,
MailTemplateXML: "< email template xml data>"
};
$.ajax({
url: "https://mydomain:9011/AgilePointServer/Admin/AddEMailTemplate",
data: JSON.stringify(JSONObject)
});
});
public String AddEMailTemplate(String TemplateOwnerID,
String MailTemplateXML) {
String URI = "http://mydomain:9011/AgilePointServer/Admin/AddEMailTemplate";
HTTPOperations ops = new HTTPOperations(domain, this.userName,
password, appID, locale);
JSONObject postData = new JSONObject();
try {
postData.put("TemplateOwnerID", TemplateOwnerID);
postData.put("MailTemplateXML", MailTemplateXML);
return ops.POSTMethod(URI, postData.toString());
} catch (JSONException e1) {
e1.printStackTrace();
}
return "";
}
The ID of the new email template.
"B460E2AF110E42ED97CE13CBFF42AB7B"
AgilePoint BPMS v5.0 R2 and higher