Get Delegation

API Type

REST

HTTP Method

GET

Description

Retrieves a delegation object.

URL Format (On Premises)

https://[domain]:[port]/AgilePointServer/Admin/GetDelegation/[delegationID]

URL Format (AgilePoint for Azure)

https://[domain]:[port]/AgilePointService/Admin/GetDelegation/[delegationID]

Request Parameters

Name Description

delegationID

Definition:
The unique ID of a delegation object.
Type
string
Allowed Values:
A valid delegation ID.

JavaScript Code Example

$("#btnGetDelegation").click(function () {
  
  $.ajax({
    url: "https://mydomain:9011/AgilePointServer/Admin/
                GetDelegation/E83A0F99EDB74FF7A048C01F1C5A32A7",
    type: "GET"
  });
  
});

Java Code Example

public String GetDelegation(String delegationID) {

  String URI = "http://mydomain:9011/AgilePointServer/Admin/GetDelegation/"
                       + delegationID;

  HTTPOperations ops = new HTTPOperations(domain, this.userName,
                       password, appID, locale);

  return ops.GETMethod(URI);
}

C# Code Example

public string GetDelegation()
  {
    string URI = "http://mydomain:9011/AgilePointServer/Admin/
                         GetDelegation/C0298B1AA3444A28A7CE5E1DFC297A87";

    HTTPOperations ops = new HTTPOperations(domain, this.userName, 
                         password, appID, locale);

    return ops.GetData(URI);
  }

Output

WFDelegation object that specifies the user whose tasks will be delegated and the designated user to whom to delegate tasks.

JSON Response Body Example

{
  "CancelledBy": null,
  "CancelledDate": "\/Date(928149600000+0000)\/",
  "CreatedBy": "demo3\\brian.lucas",
  "CreatedDate": "\/Date(1394154711507+0000)\/",
  "DelegationID": "77F9A9946CF74545B4C8A27956CDA036",
  "Description": "Rest Test",
  "EndDate": "\/Date(28799000+0000)\/",
  "FromUser": "demo3\\brian.lucas",
  "LastUpdatedBy": null,
  "LastUpdatedDate": "\/Date(928149600000+0000)\/",
  "ProcDefIDS": "",
  "RecWeekdaysString": "",
  "StartDate": "\/Date(-57600000+0000)\/",
  "Status": "Created",
  "ToUser": "demo3\\lilly.allen"
}

Supported Versions

AgilePoint BPMS v5.0 R2 and higher