Removing consult data in translation map

Hello,We have our own survey system and we send a payload of conversation data to it.We use a trigger and workflow to collect conversation data using teh following API "/api/v2/conversations/${input.conversationId}" and we use a filter to only see participant data with a

"purpose == agent" "translationMap": { "participants-queueName": "$.participants[?(@.purpose == 'agent' && @.connectedTime)].queueName", "zdticketId": "$.participants[?(@.purpose == 'customer' && @.connectedTime)].attributes.ZD_SearchValue", "participants-startTime": "$.startTime", "participants-id": "$.participants[?(@.purpose == 'agent' && @.connectedTime)].id", "participants-nameid": "$.participants[?(@.purpose == 'agent' && @.connectedTime)].userId", "participants-endTime": "$.endTime", "participants-purpose": "$.participants[?(@.purpose == 'agent' && @.connectedTime)].purpose", "customerani": "$.participants[?(@.purpose == 'customer' && @.connectedTime)].address", "participants-name": "$.participants[?(@.purpose == 'agent' && @.connectedTime)].name", "participants-queueId": "$.participants[?(@.purpose == 'agent' && @.connectedTime)].queueId", "direction": "$.participants[?(@.purpose == 'customer' && @.connectedTime)].calls[0].direction" }

However, we have found that this participant data also contains Consult Data. We do not want consult data in the returned data as the customer would never have spoken to the consulted agent. If there an easy way using translation map filters to filter consults from the returned data? Hope this make sense.

Can you provide an example of a response that includes consult data? It might be easier to attach it as a .json file if it is large. Feel free to obscure anything sensitive, but don't change the shape of the data.

--Jason

Heya, turns out it won't let me upload the file or post more because i'm a new user to the dev platform

Is there anyone way i can get the data to you?

Jason,

Can we send this to you directly?

Thanks Phil

@Hartley_Callum @Penn_Phil either of you can attach allowed files (images, json, yaml) after reaching trust level 1: Understanding Discourse Trust Levels

Get to trust level 1 by…

  • Entering at least 5 topics
  • Reading at least 30 posts
  • Spend a total of 10 minutes reading posts

You can go ahead an post the content to this page in a reply.

{
  "id": "67343718-b601-4b5a-838a-cc3d76f46d41",
  "startTime": "2023-07-25T10:25:39.669Z",
  "endTime": "2023-07-25T10:27:24.312Z",
  "address": "tel:XX",
  "participants": [
    {
      "id": "9b0c77e0-d542-41ed-bcc1-21df9b1d06a5",
      "startTime": "2023-07-25T10:25:39.669Z",
      "endTime": "2023-07-25T10:27:16.407Z",
      "connectedTime": "2023-07-25T10:25:39.752Z",
      "name": "Mobile Number, United Kingdom",
      "externalContactId": "66cb464e-64eb-4508-9a65-cb6a5fa05fc7",
      "queueId": "44c18f93-571f-41fe-859d-24aebd122a46",
      "queueName": "Paul Test 1",
      "purpose": "customer",
      "participantType": "External",
      "address": "tel:XX",
      "ani": "tel:XX",
      "aniName": "Mobile Number, United Kingdom",
      "dnis": "tel:XX",
      "wrapupRequired": false,
      "mediaRoles": [
        "full"
      ],
      "attributes": {},
      "calls": [
        {
          "state": "terminated",
          "initialState": "offering",
          "id": "c510ab98-0c41-42fc-ba61-216fd8919a0d",
          "direction": "inbound",
          "recording": false,
          "recordingState": "none",
          "muted": false,
          "confined": false,
          "held": false,
          "securePause": false,
          "segments": [
            {
              "startTime": "2023-07-25T10:25:39.670Z",
              "endTime": "2023-07-25T10:25:39.752Z",
              "type": "System",
              "howEnded": "Interact"
            },
            {
              "startTime": "2023-07-25T10:25:39.752Z",
              "endTime": "2023-07-25T10:27:16.407Z",
              "type": "Interact",
              "howEnded": "Disconnect",
              "disconnectType": "peer"
            }
          ],
          "disconnectType": "peer",
          "connectedTime": "2023-07-25T10:25:39.752Z",
          "disconnectedTime": "2023-07-25T10:27:16.407Z",
          "disconnectReasons": [],
          "provider": "Edge",
          "self": {
            "name": "Mobile Number, United Kingdom",
            "nameRaw": "",
            "addressNormalized": "tel:XX",
            "addressRaw": "sip:+",
            "addressDisplayable": "unavailable"
          },
          "other": {
            "name": "Leicester, United Kingdom",
            "nameRaw": "",
            "addressNormalized": "tel:XX",
            "addressRaw": "sip:+",
            "addressDisplayable": "unavailable"
          },
          "afterCallWork": {},
          "afterCallWorkRequired": false
        }
      ],
      "callbacks": [],
      "chats": [],
      "cobrowsesessions": [],
      "emails": [],
      "messages": [],
      "screenshares": [],
      "socialExpressions": [],
      "videos": []
    },
    {
      "id": "924e9af0-9750-445c-a61d-00f35aa777e9",
      "startTime": "2023-07-25T10:25:39.679Z",
      "endTime": "2023-07-25T10:25:52.806Z",
      "connectedTime": "2023-07-25T10:25:39.688Z",
      "name": "Paul Test Inbound Flow",
      "purpose": "ivr",
      "participantType": "IVR",
      "address": "sip:10a4531f-feff-4f04-90b6-3e9e3ab91c78AT127.0.0.1;language=en-GB;user=ivr",
      "ani": "tel:XX",
      "aniName": "Mobile Number, United Kingdom",
      "dnis": "sip:10a4531f-feff-4f04-90b6-3e9e3ab91c78AT127.0.0.1;language=en-GB;user=ivr",
      "wrapupRequired": false,
      "mediaRoles": [],
      "attributes": {},
      "calls": [
        {
          "state": "terminated",
          "initialState": "offering",
          "id": "99eccb55-5d1f-46c5-8d4c-aebb35151f67",
          "direction": "inbound",
          "recording": false,
          "recordingState": "none",
          "muted": false,
          "confined": false,
          "held": false,
          "securePause": false,
          "segments": [
            {
              "startTime": "2023-07-25T10:25:39.680Z",
              "endTime": "2023-07-25T10:25:39.688Z",
              "type": "System"
            },
            {
              "startTime": "2023-07-25T10:25:39.688Z",
              "endTime": "2023-07-25T10:25:52.806Z",
              "type": "IVR",
              "howEnded": "Disconnect",
              "disconnectType": "transfer"
            }
          ],
          "disconnectType": "transfer",
          "connectedTime": "2023-07-25T10:25:39.688Z",
          "disconnectedTime": "2023-07-25T10:25:52.806Z",
          "disconnectReasons": [],
          "provider": "Edge",
          "peerId": "c510ab98-0c41-42fc-ba61-216fd8919a0d",
          "uuiData": "1000001434",
          "self": {
            "name": "Leicester, United Kingdom",
            "nameRaw": "Leicester, United Kingdom",
            "addressNormalized": "sip:10a4531f-feff-4f04-90b6-3e9e3ab91c78AT127.0.0.1;language=en-GB;user=ivr",
            "addressRaw": "sip:10a4531f-feff-4f04-90b6-3e9e3ab91c78AT127.0.0.1;language=en-GB;user=ivr",
            "addressDisplayable": "unavailable"
          },
          "other": {
            "name": "Mobile Number, United Kingdom",
            "nameRaw": "Mobile Number, United Kingdom",
            "addressNormalized": "tel:XX",
            "addressRaw": "sip:+XX;user=phone",
            "addressDisplayable": "unavailable"
          },
          "afterCallWork": {},
          "afterCallWorkRequired": false
        }
      ],
      "callbacks": [],
      "chats": [],
      "cobrowsesessions": [],
      "emails": [],
      "messages": [],
      "screenshares": [],
      "socialExpressions": [],
      "videos": []
    },
    {
      "id": "52371b12-2dd9-4505-be9a-7d5dc845f4e5",
      "startTime": "2023-07-25T10:25:52.818Z",
      "endTime": "2023-07-25T10:25:55.469Z",
      "connectedTime": "2023-07-25T10:25:52.831Z",
      "name": "Paul Test 1",
      "queueId": "44c18f93-571f-41fe-859d-24aebd122a46",
      "queueName": "Paul Test 1",
      "purpose": "acd",
      "participantType": "ACD",
      "address": "sip:44c18f93-571f-41fe-859d-24aebd122a46AT127.0.0.1;language=en-GB;src=http//edge-proxy.euw2.pure.cloud/connector/v1/organizations/603d28af-0c78-41a2-8b47-f90340772c0e/defaults/ivr/7881c4fb-8f85-4c5a-a17b-dff84d8c599b/defaultentrypoint.vxml;user=acd",
      "ani": "tel:+447873619227",
      "aniName": "Mobile Number, United Kingdom",
      "dnis": "sip:44c18f93-571f-41fe-859d-24aebd122a46AT127.0.0.1;language=en-GB;src=http//edge-proxy.euw2.pure.cloud/connector/v1/organizations/603d28af-0c78-41a2-8b47-f90340772c0e/defaults/ivr/7881c4fb-8f85-4c5a-a17b-dff84d8c599b/defaultentrypoint.vxml;user=acd",
      "wrapupRequired": false,
      "mediaRoles": [],
      "conversationRoutingData": {
        "queue": {
          "id": "44c18f93-571f-41fe-859d-24aebd122a46",
          "selfUri": "/api/v2/routing/queues/44c18f93-571f-41fe-859d-24aebd122a46"
        },
        "priority": 100,
        "skills": [
          {
            "id": "c18a6766-2e8a-43d7-9d98-3ff7bb118c68",
            "selfUri": "/api/v2/routing/skills/c18a6766-2e8a-43d7-9d98-3ff7bb118c68"
          }
        ],
        "scoredAgents": []
      },
      "attributes": {
        "ivr.Priority": "100",
        "ivr.Skills": "c18a6766-2e8a-43d7-9d98-3ff7bb118c68"
      },
      "calls": [
        {
          "state": "terminated",
          "initialState": "offering",
          "id": "d4d5d6e8-a2ef-4ad1-8074-c915302ad713",
          "direction": "inbound",
          "recording": false,
          "recordingState": "none",
          "muted": false,
          "confined": false,
          "held": false,
          "securePause": false,
          "segments": [
            {
              "startTime": "2023-07-25T10:25:52.818Z",
              "endTime": "2023-07-25T10:25:52.831Z",
              "type": "Delay"
            },
            {
              "startTime": "2023-07-25T10:25:52.831Z",
              "endTime": "2023-07-25T10:25:55.469Z",
              "type": "Interact",
              "howEnded": "Disconnect",
              "disconnectType": "transfer"
            }
          ],
          "disconnectType": "transfer",
          "connectedTime": "2023-07-25T10:25:52.831Z",
          "disconnectedTime": "2023-07-25T10:25:55.469Z",
          "disconnectReasons": [
            {
              "type": "sip",
              "code": 410,
              "phrase": "Gone"
            }
          ],
          "provider": "Edge",
          "peerId": "c510ab98-0c41-42fc-ba61-216fd8919a0d",
          "self": {
            "name": "Paul Test 1",
            "nameRaw": "Paul Test 1",
            "addressNormalized": "sip:44c18f93-571f-41fe-859d-24aebd122a46@127.0.0.1;language=en-GB;src=htt://edge-proxy.euw2.pure.cloud/connector/v1/organizations/603d28af-0c78-41a2-8b47-f90340772c0e/defaults/ivr/7881c4fb-8f85-4c5a-a17b-dff84d8c599b/defaultentrypoint.vxml;user=acd",
            "addressRaw": "sip:44c18f93-571f-41fe-859d-24aebd122a46AT127.0.0.1;language=en-GB;src=https:edge-proxy.euw2.pure.cloud/connector/v1/organizations/603d28af-0c78-41a2-8b47-f90340772c0e/defaults/ivr/7881c4fb-8f85-4c5a-a17b-dff84d8c599b/defaultentrypoint.vxml;user=acd",
            "addressDisplayable": "unavailable"
          },
          "other": {
            "name": "Mobile Number, United Kingdom",
            "nameRaw": "Mobile Number, United Kingdom",
            "addressNormalized": "tel:XX",
            "addressRaw": "sip:+XX;user=phone",
            "addressDisplayable": "unavailable"
          },
          "afterCallWork": {},
          "afterCallWorkRequired": false
        }
      ],
      "callbacks": [],
      "chats": [],
      "cobrowsesessions": [],
      "emails": [],
      "messages": [],
      "screenshares": [],
      "socialExpressions": [],
      "videos": []
    },
    {
      "id": "c1bcad1e-0fd7-4a20-b958-f1ac24596fa3",
      "startTime": "2023-07-25T10:25:55.384Z",
      "endTime": "2023-07-25T10:27:16.398Z",
      "connectedTime": "2023-07-25T10:25:55.422Z",
      "name": "XX",
      "userUri": "/api/v2/users/85866064-d358-4c36-aa21-cd70efb36f1c",
      "userId": "85866064-d358-4c36-aa21-cd70efb36f1c",
      "queueId": "44c18f93-571f-41fe-859d-24aebd122a46",
      "queueName": "Paul Test 1",
      "purpose": "agent",
      "participantType": "Internal",
      "address": "sip:61e15bd95262df1b4b9ed9fe+nextplc1.orgspan.xxx@localhost",
      "ani": "sip:XX@XX;user=phone",
      "aniName": "Mobile Number, United Kingdom",
      "dnis": "sip:61e15bd95262df1b4b9ed9fe+nextplc1.orgspan.xxx@localhost",
      "wrapupRequired": true,
      "wrapupPrompt": "timeout",
      "wrapupTimeoutMs": 60000,
      "wrapup": {
        "code": "7fb334b0-0e9e-11e4-9191-0800200c9a66",
        "name": "Default Wrap-up Code",
        "notes": "",
        "tags": [],
        "durationSeconds": 2,
        "endTime": "2023-07-25T10:27:18.679Z"
      },
      "mediaRoles": [
        "full"
      ],
      "alertingTimeoutMs": 15000,
      "attributes": {},
      "calls": [
        {
          "state": "terminated",
          "initialState": "alerting",
          "id": "1c9b412f-526c-4662-8081-dedf189d9211",
          "direction": "inbound",
          "recording": false,
          "recordingState": "none",
          "muted": false,
          "confined": false,
          "held": false,
          "securePause": false,
          "segments": [
            {
              "startTime": "2023-07-25T10:25:55.384Z",
              "endTime": "2023-07-25T10:25:55.422Z",
              "type": "Alert",
              "howEnded": "Interact"
            },
            {
              "startTime": "2023-07-25T10:25:55.422Z",
              "endTime": "2023-07-25T10:27:16.398Z",
              "type": "Interact",
              "howEnded": "Disconnect",
              "disconnectType": "client"
            },
            {
              "startTime": "2023-07-25T10:27:16.398Z",
              "endTime": "2023-07-25T10:27:18.679Z",
              "type": "Wrapup",
              "howEnded": "Disconnect",
              "disconnectType": "client"
            }
          ],
          "errorInfo": {
            "message": "session 1c9b412f-526c-4662-8081-dedf189d9211 is inactive for command cloud.command.disconnect",
            "code": "error.ininedgecontrol.session.inactive",
            "messageWithParams": "session {sessionId} is inactive for command {type}",
            "messageParams": {
              "sessionId": "1c9b412f-526c-4662-8081-dedf189d9211",
              "type": "cloud.command.disconnect"
            },
            "details": [],
            "errors": []
          },
          "disconnectType": "client",
          "startAlertingTime": "2023-07-25T10:25:55.463Z",
          "connectedTime": "2023-07-25T10:25:55.422Z",
          "disconnectedTime": "2023-07-25T10:27:16.398Z",
          "disconnectReasons": [],
          "provider": "Edge",
          "peerId": "c510ab98-0c41-42fc-ba61-216fd8919a0d",
          "self": {
            "nameRaw": "XX",
            "addressNormalized": "sip:61e15bd95262df1b4b9ed9fe+nextplc1.orgspan.xxx@localhost",
            "addressRaw": "sip:61e15bd95262df1b4b9ed9fe+nextplc1.orgspan.xxx@10.97.2.164;language=en-GB;user=station",
            "addressDisplayable": "unavailable"
          },
          "other": {
            "name": "Mobile Number, United Kingdom",
            "nameRaw": "Mobile Number, United Kingdom",
            "addressNormalized": "sip:+XX@XX;user=phone",
            "addressRaw": "sip:+XX@XX;user=phone",
            "addressDisplayable": "unavailable"
          },
          "afterCallWork": {
            "startTime": "2023-07-25T10:27:16.398Z",
            "endTime": "2023-07-25T10:27:18.679Z",
            "state": "complete"
          },
          "afterCallWorkRequired": false
        }
      ],
      "callbacks": [],
      "chats": [],
      "cobrowsesessions": [],
      "emails": [],
      "messages": [],
      "screenshares": [],
      "socialExpressions": [],
      "videos": [],
      "screenRecordingState": "error",
      "startAcwTime": "2023-07-25T10:27:16.398Z",
      "endAcwTime": "2023-07-25T10:27:18.679Z"
    },
    {
      "id": "76b008b1-8e3b-4564-b275-a5461f4f9e47",
      "startTime": "2023-07-25T10:26:16.175Z",
      "endTime": "2023-07-25T10:26:18.197Z",
      "connectedTime": "2023-07-25T10:26:16.231Z",
      "name": "Paul Test 2",
      "queueId": "2407a555-a7f0-41a0-8c06-e3e791e7e102",
      "queueName": "Paul Test 2",
      "purpose": "acd",
      "participantType": "ACD",
      "address": "sip:2407a555-a7f0-41a0-8c06-e3e791e7e102AT127.0.0.1;language=en-GB;user=acd",
      "ani": "sip:XX@localhost",
      "aniName": "XX",
      "dnis": "sip:2407a555-a7f0-41a0-8c06-e3e791e7e102AT127.0.0.1;language=en-GB;user=acd",
      "wrapupRequired": false,
      "mediaRoles": [],
      "conversationRoutingData": {
        "queue": {
          "id": "2407a555-a7f0-41a0-8c06-e3e791e7e102",
          "selfUri": "/api/v2/routing/queues/2407a555-a7f0-41a0-8c06-e3e791e7e102"
        },
        "priority": 0,
        "skills": [],
        "scoredAgents": []
      },
      "attributes": {},
      "calls": [
        {
          "state": "terminated",
          "initialState": "offering",
          "id": "b1e4146f-7ada-451c-8153-9408ec16add3",
          "direction": "inbound",
          "recording": false,
          "recordingState": "none",
          "muted": false,
          "confined": false,
          "held": false,
          "securePause": false,
          "segments": [
            {
              "startTime": "2023-07-25T10:26:16.175Z",
              "endTime": "2023-07-25T10:26:16.231Z",
              "type": "Delay"
            },
            {
              "startTime": "2023-07-25T10:26:16.231Z",
              "endTime": "2023-07-25T10:26:18.197Z",
              "type": "Interact",
              "howEnded": "Disconnect",
              "disconnectType": "transfer"
            }
          ],
          "disconnectType": "transfer",
          "connectedTime": "2023-07-25T10:26:16.231Z",
          "disconnectedTime": "2023-07-25T10:26:18.197Z",
          "disconnectReasons": [
            {
              "type": "sip",
              "code": 410,
              "phrase": "Gone"
            }
          ],
          "provider": "Edge",
          "peerId": "1c9b412f-526c-4662-8081-dedf189d9211",
          "self": {
            "name": "Paul Test 2",
            "nameRaw": "Paul Test 2",
            "addressNormalized": "sip:2407a555-a7f0-41a0-8c06-e3e791e7e102AT127.0.0.1;language=en-GB;user=acd",
            "addressRaw": "sip:2407a555-a7f0-41a0-8c06-e3e791e7e102AT127.0.0.1;language=en-GB;user=acd",
            "addressDisplayable": "unavailable"
          },
          "other": {
            "name": "XX",
            "nameRaw": "XX",
            "addressNormalized": "sip:XX@localhost",
            "addressRaw": "sip:XX@localhost",
            "addressDisplayable": "unavailable"
          },
          "afterCallWork": {},
          "afterCallWorkRequired": false
        }
      ],
      "callbacks": [],
      "chats": [],
      "cobrowsesessions": [],
      "emails": [],
      "messages": [],
      "screenshares": [],
      "socialExpressions": [],
      "videos": []
    },
    {
      "id": "aa39bd57-adb2-418e-a399-a1f103d49b62",
      "startTime": "2023-07-25T10:26:16.408Z",
      "endTime": "2023-07-25T10:27:10.420Z",
      "connectedTime": "2023-07-25T10:26:18.195Z",
      "name": "Partiticant Data to filter out",
      "userUri": "/api/v2/users/ed0b4851-e328-4878-9fb4-3030c5e48c38",
      "userId": "ed0b4851-e328-4878-9fb4-3030c5e48c38",
      "queueId": "2407a555-a7f0-41a0-8c06-e3e791e7e102",
      "queueName": "Paul Test 2",
      "purpose": "agent",
      "participantType": "Internal",
      "address": "sip:61e15bf18b15da1b3c7bace1+nextplc1.orgspan.xxx;tgrp=b8c20a02-97e4-4c22-ba2f-528baf918d3d;trunk-context=nextplc1@localhost",
      "ani": "sip:XX@localhost",
      "aniName": "XX",
      "dnis": "sip:61e15bf18b15da1b3c7bace1+nextplc1.orgspan.xxx;tgrp=b8c20a02-97e4-4c22-ba2f-528baf918d3d;trunk-context=nextplc1@localhost",
      "wrapupRequired": true,
      "wrapupPrompt": "timeout",
      "wrapupTimeoutMs": 60000,
      "wrapup": {
        "code": "7fb334b0-0e9e-11e4-9191-0800200c9a66",
        "name": "Default Wrap-up Code",
        "notes": "",
        "tags": [],
        "durationSeconds": 14,
        "endTime": "2023-07-25T10:27:24.312Z"
      },
      "mediaRoles": [
        "full"
      ],
      "alertingTimeoutMs": 15000,
      "attributes": {},
      "calls": [
        {
          "state": "terminated",
          "initialState": "alerting",
          "id": "7caf4325-325e-4544-9210-1ac167307889",
          "direction": "inbound",
          "recording": false,
          "recordingState": "none",
          "muted": false,
          "confined": false,
          "held": false,
          "securePause": false,
          "segments": [
            {
              "startTime": "2023-07-25T10:26:16.408Z",
              "endTime": "2023-07-25T10:26:18.195Z",
              "type": "Alert",
              "howEnded": "Interact"
            },
            {
              "startTime": "2023-07-25T10:26:18.195Z",
              "endTime": "2023-07-25T10:27:10.420Z",
              "type": "Interact",
              "howEnded": "Disconnect",
              "disconnectType": "client"
            },
            {
              "startTime": "2023-07-25T10:27:10.420Z",
              "endTime": "2023-07-25T10:27:24.312Z",
              "type": "Wrapup",
              "howEnded": "Disconnect",
              "disconnectType": "client"
            }
          ],
          "errorInfo": {
            "message": "session 7caf4325-325e-4544-9210-1ac167307889 is inactive for command cloud.command.disconnect",
            "code": "error.ininedgecontrol.session.inactive",
            "messageWithParams": "session {sessionId} is inactive for command {type}",
            "messageParams": {
              "sessionId": "7caf4325-325e-4544-9210-1ac167307889",
              "type": "cloud.command.disconnect"
            },
            "details": [],
            "errors": []
          },
          "disconnectType": "client",
          "startAlertingTime": "2023-07-25T10:26:16.467Z",
          "connectedTime": "2023-07-25T10:26:18.195Z",
          "disconnectedTime": "2023-07-25T10:27:10.420Z",
          "disconnectReasons": [
            {
              "type": "sip",
              "code": 487,
              "phrase": "Request Terminated"
            }
          ],
          "provider": "Edge",
          "peerId": "1c9b412f-526c-4662-8081-dedf189d9211",
          "self": {
            "nameRaw": "XX",
            "addressNormalized": "sip:61e15bf18b15da1b3c7bace1+nextplc1.orgspan.xxx;tgrp=b8c20a02-97e4-4c22-ba2f-528baf918d3d;trunk-context=nextplc1@localhost",
            "addressRaw": "sip:61e15bf18b15da1b3c7bace1+nextplc1.orgspan.xxxAT10.97.49.141;language=en-GB;user=station",
            "addressDisplayable": "unavailable"
          },
          "other": {
            "name": "XX",
            "nameRaw": "XX",
            "addressNormalized": "sip:XX@localhost",
            "addressRaw": "sip:XX@localhost",
            "addressDisplayable": "unavailable"
          },
          "afterCallWork": {
            "startTime": "2023-07-25T10:27:10.420Z",
            "endTime": "2023-07-25T10:27:24.312Z",
            "state": "complete"
          },
          "afterCallWorkRequired": false
        }
      ],
      "callbacks": [],
      "chats": [],
      "cobrowsesessions": [],
      "emails": [],
      "messages": [],
      "screenshares": [],
      "socialExpressions": [],
      "videos": [],
      "screenRecordingState": "error",
      "startAcwTime": "2023-07-25T10:27:10.420Z",
      "endAcwTime": "2023-07-25T10:27:24.312Z"
    }
  ],
  "recordingState": "NONE",
  "divisions": [
    {
      "division": {
        "id": "2d6f6a60-a800-4152-85e2-154ed2d603fa",
        "selfUri": "/api/v2/authorization/divisions/2d6f6a60-a800-4152-85e2-154ed2d603fa"
      },
      "entities": [
        {
          "id": "7062d35a-aee8-45b4-9e9b-def58fe96bbf",
          "selfUri": "/api/v2/flows/7062d35a-aee8-45b4-9e9b-def58fe96bbf"
        },
        {
          "id": "7290fdf3-d160-4706-8ae6-cd90e3f00eaa",
          "selfUri": "/api/v2/flows/7290fdf3-d160-4706-8ae6-cd90e3f00eaa"
        },
        {
          "id": "44c18f93-571f-41fe-859d-24aebd122a46",
          "selfUri": "/api/v2/routing/queues/44c18f93-571f-41fe-859d-24aebd122a46"
        },
        {
          "id": "2407a555-a7f0-41a0-8c06-e3e791e7e102",
          "selfUri": "/api/v2/routing/queues/2407a555-a7f0-41a0-8c06-e3e791e7e102"
        }
      ]
    },
    {
      "division": {
        "id": "6828f7f9-bb02-4b95-a168-1deee407efbe",
        "selfUri": "/api/v2/authorization/divisions/6828f7f9-bb02-4b95-a168-1deee407efbe"
      },
      "entities": [
        {
          "id": "85866064-d358-4c36-aa21-cd70efb36f1c",
          "selfUri": "/api/v2/users/85866064-d358-4c36-aa21-cd70efb36f1c"
        },
        {
          "id": "ed0b4851-e328-4878-9fb4-3030c5e48c38",
          "selfUri": "/api/v2/users/ed0b4851-e328-4878-9fb4-3030c5e48c38"
        }
      ]
    }
  ],
  "recentTransfers": [
    {
      "id": "82c49c75-c45e-4fc4-8caf-80db96b854fb",
      "state": "Complete",
      "dateIssued": "2023-07-25T10:25:55.309Z",
      "initiator": {},
      "modifiedBy": {},
      "destination": {
        "userId": "85866064-d358-4c36-aa21-cd70efb36f1c",
        "address": "sip:XX@localhost"
      },
      "transferType": "Attended"
    },
    {
      "id": "5844ce50-a0d8-4135-974a-bb6a47b0b95f",
      "state": "Canceled",
      "dateIssued": "2023-07-25T10:26:16.118Z",
      "initiator": {
        "userId": "85866064-d358-4c36-aa21-cd70efb36f1c"
      },
      "modifiedBy": {},
      "destination": {
        "address": "sip:2407a555-a7f0-41a0-8c06-e3e791e7e102@localhost"
      },
      "transferType": "Attended"
    },
    {
      "id": "07a5e855-1dee-42bb-b34a-0ee5d4bd9718",
      "state": "Complete",
      "dateIssued": "2023-07-25T10:26:16.332Z",
      "initiator": {},
      "modifiedBy": {},
      "destination": {
        "userId": "ed0b4851-e328-4878-9fb4-3030c5e48c38",
        "address": "sip:XX@localhost"
      },
      "transferType": "Attended"
    }
  ],
  "securePause": false,
  "selfUri": "/api/v2/conversations/67343718-b601-4b5a-838a-cc3d76f46d41"
}

Two Agent Participants
Agent who spoke to customer
c1bcad1e-0fd7-4a20-b958-f1ac24596fa3
Agent who was consulted with
aa39bd57-adb2-418e-a399-a1f103d49b62

We need to filter out the last one using JsonPath

I had to replace all the @ symbols with AT. And all the .com's with xxx - due to not being able to post more than 2 links in a post

Have you identified something in this object that we can use to tell if an agent was consulting with an agent instead of talking to the customer, or is that what you are asking me?

--Jason

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.