| Methods / Methods for Custom Attributes | |
REST
POST
Retrieves a single custom attribute.
https://[domain]:[port]/AgilePointServer/Workflow/GetCustomAttr/[customID]
https://[domain]:[port]/AgilePointService/Workflow/GetCustomAttr/[customID]
| Name | Description |
|---|---|
customID |
|
| Name | Description |
|---|---|
attrName |
|
$("#btnGetCustomAttr").click(function () {
var JSONObject = {
attrName: "/pd:myFields/pd:orgamount"};
$.ajax({
url: "https://mydomain:9011/AgilePointServer/Workflow/
GetCustomAttr/AAA82AAE37054A1AB469FB480028A7A3",
data: JSON.stringify(JSONObject)
});
});
public String GetCustomAttr(String customID, String attrName) {
String URI = "http://mydomain:9011/AgilePointServer/Workflow/GetCustomAttr/"
+ customID;
HTTPOperations ops = new HTTPOperations(domain, this.userName,
password, appID, locale);
JSONObject postData = new JSONObject();
try {
postData.put("attrName", attrName);
return ops.POSTMethod(URI, postData.toString());
} catch (JSONException e) {
e.printStackTrace();
}
return "";
}
public string GetCustomAttr()
{
string URL = "http://mydomain:9011/AgilePointServer/Workflow/
GetCustomAttr/FE6F63E224174FE9BD8B30A8ADCB0434";
string jsonRequestdata = "{
\"attrName\":\"" + "/pd:myFields/pd:file" + "\"}";
HTTPOperations ops = new HTTPOperations(domain, this.userName,
password, appID, locale);
return ops.POSTMethod(URL, jsonRequestdata);
}
Custom attribute value (can be string, integer, float, double, bool, and/or DateTime).
"100.2"
AgilePoint BPMS v5.0 R2 and higher