Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Get scheduled callbacks in a time inteval

    Posted 30 days ago

    Hello,

     I am trying to find out all scheduled callbacks for a specific time interval. I believe I need to use the /api/v2/analytics/conversations/details/query and make a filter based on callbackScheduledTime but I cannot seem to find how to specify a range for this dimension. The only operators available are matches, exists, notExists. 

    Can anyone help me here? How can I specify a between operation or something similar?

    Thank you,

    Mihai


    #PlatformAPI

    ------------------------------
    Mihai Vasiloiu
    Tech Lead Customer Interactions
    ------------------------------


  • 2.  RE: Get scheduled callbacks in a time inteval

    Posted 30 days ago
    Edited by Tristen Schwarzenberger 30 days ago

    Hey Mihai,

    If it helps any, when I go to the report in the UI, here is the payload I'm seeing in the console Network tab.
    It looks like the "Scheduled" with the "Interval" segments will be the way along with the "NotExists" for the segmentEnd.

    And I did confirm you are using the same API the UI is using.



    ------------------------------
    Tristen Schwarzenberger
    IT Engineer
    GCP
    ------------------------------



  • 3.  RE: Get scheduled callbacks in a time inteval

    Posted 30 days ago

    Here is the Payload typed out:

    {
      "order": "desc",
      "orderBy": "conversationStart",
      "paging": {
        "pageNumber": 1,
        "pageSize": 50
      },
      "interval": "2025-10-21T05:00:00.000Z/2025-10-22T05:00:00.000Z",
      "segmentFilters": [
        {
          "type": "and",
          "predicates": [
            {
              "dimension": "mediaType",
              "value": "callback"
            },
            {
              "dimension": "segmentType",
              "value": "Scheduled"
            },
            {
              "dimension": "segmentEnd",
              "operator": "notExists"
            }
          ]
        }
      ],
      "conversationFilters": []
    }



    ------------------------------
    Tristen Schwarzenberger
    IT Engineer
    GCP
    ------------------------------



  • 4.  RE: Get scheduled callbacks in a time inteval

    Posted 30 days ago

    Hi Tristen,

     Thank you for your answers but I'm afraid this will not work since the interval will restrict only to time interval when the interaction were created (Interval) not when it was scheduled (callbackScheduledTime).

    Also the time interval in the UI report reflects the time when interactions were created not scheduled. Look at the filter in my picture, it was created today but scheduled tomorrow. The filter is for today only.

    Regards,
    Miahi


    ------------------------------
    Mihai Vasiloiu
    Tech Lead Customer Interactions
    ------------------------------



  • 5.  RE: Get scheduled callbacks in a time inteval

    Posted 30 days ago
    Edited by Tristen Schwarzenberger 30 days ago

    Hey Mihai,

    Sorry about that and thank you for the clarification. I am curious if there is a way to make that work as well. With the "interval" column being mandatory that makes it even tougher. 
    Since interval is mandatory the only workaround I could think of is exporting either the UI or JSON response data to a spreadsheet and filtering from there. Unless running it from an application other than the Toolbox or UI allows you to bypass the interval requirement.



    ------------------------------
    Tristen Schwarzenberger
    IT Engineer
    GCP
    ------------------------------