| 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 URI = "https://mydomain:9011/AgilePointServer/Admin/AddEMailTemplate";
HTTPOperations ops = new HTTPOperations(domain, userName,
password, appID, locale);
JSONObject postData = new JSONObject();
postData.put("TemplateOwnerID", "BBB82AAE37054A1AB469FB480028A7A3");
postData.put("MailTemplateXML", "<email template xml data>");
return ops.POSTMethod(URI, postData.toString());
return "";
}
public string AddEMailTemplate()
{
string URI = "https://mydomain:9011/AgilePointServer/Admin/AddEMailTemplate";
string jsonRequestData = "{
\"TemplateOwnerID\":\"" + null + "\",
\"MailTemplateXML\":\"" + '<process template XML string>' + "\"}";
HTTPOperations ops = new HTTPOperations(domain, this.userName,
password, appID, locale);
return ops.POSTMethod(URI, jsonRequestData);
}
The ID of the new email template.
"B460E2AF110E42ED97CE13CBFF42AB7B"
AgilePoint BPMS v5.0 R2 and higher