cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
500
Views
5
Helpful
4
Replies

Webhooks: Certain Types missing "createdTime"

BlakeR
Level 1
Level 1

Hello,

We collected about 1.5 days worth of Webhooks back in October 2022 from a client.

Certain Webhook Types had missing "createdTime" keys under their "data".

This appeared to happen with about 1/2 of the "task:ended" and all of the "task:on-hold" Webhooks. We are able to fix some of the Webhook "createdTime" values by using a matching Webhook "id" from a "agent:state_change" Webhook. If we cannot find a matching Webhook "id" with a valid "createdTime", we have to rely on the current Unix timestamp of our webserver that the Webhooks are being sent to, which is not ideal as we have seen differences of a few seconds due to travel time and the fact each server's time clocks are not synced. 

Total Webhooks received: 52522

Webhooks received by Type:

webhook_typecount
agent:login94
agent:logout216
agent:state_change22300
capture:available3660
task:conferencing2
task:connect5978
task:connected4509
task:consult-done50
task:consulting136
task:ended6514
task:hold-done187
task:new6493
task:on-hold323
task:parked2060

 

Webhooks Received with Null "createdTime":

webhook_typecount
task:ended3250
task:on-hold323

 

4 Replies 4

sdoddali
Cisco Employee
Cisco Employee

Hi BlakeR, 

Could you provide the interactionID of the call which does not have 'createdTime' in task:ended and task:on-hold events?
Does this happen only during hold scenario?

Do you mean the "taskId"? I don't see a interactionID key in the in any of the Webhooks we received. One "taskId" sample that has both "task:ended" and "task:on-hold" Webhooks with missing "createdTime" keys is "49036f7b-ceed-410e-8581-32eda14c1cf5".

 

    { # Webhook types and Keys present in each type
        # Webhook Types:
            # agent:login
            # agent:logout
            # agent:state_change

            # capture:available

            # task:conferencing
            # task:connect
            # task:connected
            # task:consult-done
            # task:consulting
            # task:ended
            # task:hold-done
            # task:new
            # task:on-hold
            # task:parked

        # agent:
        #     comciscoorgid => true
        #     data => {
        #       agentId => true
        #       channelType => true
        #       consultQueueId => true
        #       consultTeamId => true
        #       createdTime => true
        #       currentState => true
        #       destAgentId => true
        #       destination => true
        #       idleCodeId => true
        #       loggedOutBy => true
        #       origin => true
        #       profileType => true
        #       queueId => true
        #       taskId => true
        #       teamId => true
        #     }
        #     datacontenttype => true
        #     id => true
        #     source => true
        #     specversion => true
        #     type => true

        # capture:
            # comciscoorgid => true
            # data => {
            #   createdTime => true
            #   filePath => true
            #   taskId => true
            # }
            # datacontenttype => true
            # id => true
            # source => true
            # specversion => true
            # type => true

        # task:
            # comciscoorgid => true
            # data => {
            #   channelType => true
            #   createdTime => true
            #   destination => true
            #   direction => true
            #   origin => true
            #   outboundType => true
            #   queueId => true
            #   reason => true
            #   taskId => true
            #   terminatingParty => true
            #   workflowManager => true
            # }
            # datacontenttype => true
            # id => true
            # source => true
            # specversion => true
            # type => true
    }

sdoddali
Cisco Employee
Cisco Employee

Thanks, BlakeR,
Yes, the taskID, I believe this taskID '49036f7b-ceed-410e-8581-32eda14c1cf5' is from October and we store logs only for the last 30days, Do you have a more recent example, if so, please do share the taskID.

Unfortunately, we do not have any recent taskIDs to share. In the next month or so, we should be working with another client. I'll reply to this thread with examples from those taskIDs if the issue is still present.