Get-Conversation-Details---external-contact---Exported-2023-07-10--1731-20230711111327.custom.json (1.3 KB)
Hi there,
I'm looking to associate an interaction with an external contact. I am currently just trying to get the Communication ID so that I can then go onto the association part.
Using /api/v2/analytics/conversations/${input.conversationId}/details to get the communication Id. However, I really struggle with Data actions & finding it hard to only return the relevant Id, my current output based on the attached data action is the below, how can I only return the communication ID?:
{
"sessionID[0].segments.conference": [
false
],
"sessionID[0].addressTo": "154dea3e-c4cd-4919-bf18-30687c1c6378",
"sessionID[0].segments.queueId": [
"3e7a7fd8-19f3-4163-9a98-50d65e82979d"
],
"sessionID[0].journeyCustomerSessionIdType": "web",
"sessionID[0].mediaType": "message",
"sessionID[0].sessionId": "7c132126-582e-43b9-87b3-4cb039e68eb0",
"sessionID[0].provider": "PureCloud Messaging",
"sessionID[0].addressFrom": "3938a4a2-1209-4700-a129-1d758aa11bbc",
"sessionID[0].peerId": "82734327-62ef-4e62-bf96-026342b2e99e",
"sessionID[0].segments.segmentEnd": [
"2023-07-10T14:55:34.578Z"
],
"sessionID[0].journeyCustomerId": "bf87e8c8-e1c1-411a-81f0-3415dcceae15",
"sessionID[0].journeyCustomerIdType": "cookie",
"sessionID[0].metrics.name": [
"nConnected",
"tConnected"
],
"sessionID[0].requestedRoutings": [
"Standard"
],
"sessionID[0].selectedAgentId": "a0e911f2-9eb7-4b53-9640-e1303187e986",
"sessionID[0].messageType": "webmessaging",
"sessionID[0].segments.disconnectType": [
"peer"
],
"sessionID[0].segments.segmentStart": [
"2023-07-10T14:54:22.164Z"
],
"sessionID[0].metrics.value": [
1,
72414
],
"sessionID[0].segments.segmentType": [
"interact"
],
"sessionID[0].usedRouting": "Standard",
"sessionID[0].metrics.emitDate": [
"2023-07-10T14:54:22.164Z",
"2023-07-10T14:55:34.578Z"
],
"sessionID[0].journeyCustomerSessionId": "0dbf2c9e-47eb-45a7-a1fe-ca021a6f12ca",
"sessionID[0].direction": "inbound",
"sessionId": [
null
]
}