Skip to main content

Automation Anywhere GetWorkitemsByCase

Overview

This operation returns a JSON containing all the information of the workitems of a specific case that the authenticated user can access.

Input

  • token: Token used to authenticate the user.
  • process-id: ID of the case.
  • base-address: URL of your Work Portal.

Output

  • processes: A JSON containing the workitems information.

    AutomationAnywhere022

Important considerations

  1. Generally, before using this operation, you must get the authorization token using the Authenticate operation.
  2. The ID of the case can be obtained from the GetCaseByProcess operation.
  3. Several important properties can be retrieved from this operation:
    • The case ID is identified by the key "id".
    • The attributes related to the process are identified in the "parameters" array, showing their xpath and value.
    • The "taskName" key is useful to identify a specific workitem you are looking for.

Here you can see an example of how the JSON looks like:

{
"@odata.id": "http://wp-danielpd/AutomationAnywhereV2/odata/data/cases(6)/workitems(31)",
"id": 31,
"taskName": "AA Response",
"state": "green",
"estimatedSolutionDate": "2027-06-01T00:00:00-05:00",
"parameters": [
{
"id": "f4098dd5-50e8-45a8-9b18-5e056c7eb234",
"name": "Full name",
"xpath": "CVReader.Fullname",
"type": "VarChar",
"required": "True"
},
{
"id": "45e2e89e-70b3-4e1e-888a-3c54ee6cfbe5",
"name": "Profession",
"xpath": "CVReader.Profession",
"type": "VarChar",
"required": "True"
},
{
"id": "ee05d38e-a88c-4297-a4ae-0f64bd513af9",
"name": "Years of experience",
"xpath": "CVReader.Yearsofexperience",
"type": "VarChar",
"required": "True"
}
]
}