Lea y revise la documentación de Automation Anywhere

Cerrar contenidos

Contenidos

Abrir contenidos

Hacer una lista de todos los elementos de trabajo en una lista de prioridad

  • Actualizado: 5/06/2020
    • 11.3.x
    • Explorar
    • Enterprise
    • Documentos de API

Hacer una lista de todos los elementos de trabajo en una lista de prioridad

Automation Anywhere proporciona una API de REST que le permite recuperar una lista de elementos de trabajo en una lista de prioridad determinada.

Requisitos previos

Rol AAE_Queue Admin
Necesita una cuenta de usuario con el rol AAE_Queue Admin para consultar y gestionar listas de prioridad de carga de trabajo y elementos de trabajo en un Enterprise Control Room.
Web Token JSON (JWT)
Todas las API de Enterprise Control Room requieren un Web Token JSON (JWT) para acceder a las API. Genere un token de autenticación usando la API de autenticación.
  • URL: https://<your_control_room_url>/v2/wlm/queues/{id}/workitems/list.
  • Método: POST.

Procedimiento

  1. Agregar un token de autenticación a la cabecera de la solicitud.
    Nota: Utilizar la API de autenticación para generar un Web Token JSON.
  2. Introduzca los siguientes parámetros en el cuerpo de la solicitud.

    Hay 2 entradas necesarias para esta solicitud.

    ID
    7
    Request body:
    {
      "filter": {
        "operator": "and",
        "operands": [
          {
            "field": "id",
            "operator": "gt",
            "value": "30800"
          },
          {
            "field": "id",
            "operator": "lt",
            "value": "30900"
          }
        ]
      },
      "page": {
        "length": 3,
        "offset": 0
      }
    }
  3. Envíe la solicitud.
    • En un cliente REST, haga clic en SEND.
    • En la interfaz de Swagger, haga clic en Ejecutar.
    Cuerpo de la respuesta:
    {
      "page": {
        "offset": 0,
        "total": 229,
        "totalFilter": 12
      },
      "list": [
        {
          "id": "30888",
          "createdBy": "1",
          "createdOn": "2019-09-10T21:09:50.722Z",
          "updatedBy": "0",
          "updatedOn": "2019-09-10T21:13:46.304Z",
          "version": "5",
          "json": {
            "Invoice Id": "INV0004",
            "Customer Name": "APIName1",
            "Amount": 9007199254740991,
            "email": "API123@gmail.com",
            "Invoice Date": "2017-06-12T00:18:48Z"
          },
          "result": "",
          "deviceId": "3",
          "status": "SUCCESSFUL",
          "startTime": "2019-09-10T21:12:16.599Z",
          "endTime": "2019-09-10T21:13:17.062Z",
          "col1": "INV0004",
          "col2": "APIName1",
          "col3": "9.007199254740991E15",
          "col4": "API123@gmail.com",
          "col5": "2017-06-12T00:18:48Z",
          "deviceUserId": "0",
          "queueId": "7",
          "comment": "",
          "automationId": "6",
          "totalPausedTime": "0",
          "error": "",
          "col6": "",
          "col7": "",
          "col8": "",
          "col9": "",
          "col10": ""
        },
        {
          "id": "30889",
          "createdBy": "1",
          "createdOn": "2019-09-10T21:09:51.383Z",
          "updatedBy": "0",
          "updatedOn": "2019-09-10T21:13:46.255Z",
          "version": "5",
          "json": {
            "Invoice Id": "INV0004",
            "Customer Name": "APIName1",
            "Amount": 9007199254740991,
            "email": "API123@gmail.com",
            "Invoice Date": "2017-06-12T00:18:48Z"
          },
          "result": "",
          "deviceId": "4",
          "status": "SUCCESSFUL",
          "startTime": "2019-09-10T21:12:23.841Z",
          "endTime": "2019-09-10T21:13:24.265Z",
          "col1": "INV0004",
          "col2": "APIName1",
          "col3": "9.007199254740991E15",
          "col4": "API123@gmail.com",
          "col5": "2017-06-12T00:18:48Z",
          "deviceUserId": "0",
          "queueId": "7",
          "comment": "",
          "automationId": "6",
          "totalPausedTime": "0",
          "error": "",
          "col6": "",
          "col7": "",
          "col8": "",
          "col9": "",
          "col10": ""
        },
        {
          "id": "30890",
          "createdBy": "1",
          "createdOn": "2019-09-10T21:09:52.324Z",
          "updatedBy": "0",
          "updatedOn": "2019-09-10T21:13:46.347Z",
          "version": "5",
          "json": {
            "Invoice Id": "INV0004",
            "Customer Name": "APIName1",
            "Amount": 9007199254740991,
            "email": "API123@gmail.com",
            "Invoice Date": "2017-06-12T00:18:48Z"
          },
          "result": "",
          "deviceId": "5",
          "status": "SUCCESSFUL",
          "startTime": "2019-09-10T21:12:29.501Z",
          "endTime": "2019-09-10T21:13:30.102Z",
          "col1": "INV0004",
          "col2": "APIName1",
          "col3": "9.007199254740991E15",
          "col4": "API123@gmail.com",
          "col5": "2017-06-12T00:18:48Z",
          "deviceUserId": "0",
          "queueId": "7",
          "comment": "",
          "automationId": "6",
          "totalPausedTime": "0",
          "error": "",
          "col6": "",
          "col7": "",
          "col8": "",
          "col9": "",
          "col10": ""
        }
      ]
    }
    Encabezado de respuesta:
     cache-control: no-cache, no-store, max-age=0, must-revalidate 
     connection: keep-alive 
     content-security-policy: default-src 'self' 
     content-type: application/json 
     date: Tue, 24 Sep 2019 19:40:09 GMT 
     expires: 0 
     pragma: no-cache 
     transfer-encoding: chunked 
     x-content-type-options: nosniff 
     x-frame-options: SAMEORIGIN 
     x-xss-protection: 1; mode=block 
Enviar comentarios