Skip to main content
Question

API Syntax to look for job(s) in the last 1 hour


Below is the Body syntax of an API call for Bot Execution Orchestration (v3/activity/list) to return Completed jobs with StartDateTime greater than 3/23/24 17:43:53.373733600. Is it possible to write similar to return Completed jobs with StartDateTime greater than one hour ago (current time - 1 hour)? Could someone share sample syntax for that?

{

  "filter": {

    "operator":"and",

    "operands":[

        {

            "operator": "eq",

            "value": "COMPLETED",

            "field": "status"

        },

        {

            "operator": "gt",

            "value": "2024-03-23T17:43:53.373733600Z",

            "field": "startDateTime"

        }

      ]

  },

  "sort": [

    {

      "field": "startDateTime",

      "direction": "desc"

    }

  ],

  "page": {

    "offset": 0,

    "length": 10

  }

}

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings