All Classes Pages
ActivityByIDsExamples Class Reference

More...

Detailed Description

Examples for GET Activities by IDs

Example 1 - Get all attributes for an email activity

This example demonstrates the following:

  • Getting all attributes of a single email activity.
  • Representation of all attributes of an email activity, including custom attributes. Note that payload.email.contents is returned in this case as only a single activity is requested. If multiple activities were requested, contents node would be omitted even if payload were explicitly requested.

XML

Request

Method URL
GET /ws/v12/interaction/activity/1011?$attribute=all

Request headers

Name Value
X-egain-session Valid session ID
Accept application/xml
Accept-Language en-US

Response
HTTP/1.1 200 OK

Response headers

Name Value
X-egain-session current session ID
Content-Type application/xml

Response body

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<activities xmlns="http://bindings.egain.com/ws/model/v12/gen/interaction/activity"
xmlns:ns2="http://bindings.egain.com/ws/model/v12/gen/interaction/case"
xmlns:ns3="http://bindings.egain.com/ws/model/v12/gen/platform"
xmlns:ns4="http://bindings.egain.com/ws/model/v12/gen/common"
xmlns:ns5="http://bindings.egain.com/ws/model/v12/gen/interaction/folder"
xmlns:ns6="http://bindings.egain.com/ws/model/v12/gen/interaction/customer"
xmlns:ns7="http://bindings.egain.com/ws/model/v12/gen/interaction/contactperson"
xmlns:ns8="http://bindings.egain.com/ws/model/v12/gen/interaction/contactpoint"
xmlns:ns9="http://bindings.egain.com/ws/model/v12/gen/kb"
xmlns:ns10="http://bindings.egain.com/ws/model/v15/gen/kb/edition"
xmlns:ns11="http://bindings.egain.com/ws/model/v15/gen/kb/profile"
xmlns:ns12="http://bindings.egain.com/ws/model/v12/gen/interaction/attachment"
xmlns:ns13="http://bindings.egain.com/ws/model/v12/gen/mail/alias"
xmlns:ns14="http://bindings.egain.com/ws/model/v12/gen/live/entrypoint">
    <activity id="1011">
        <link rel="self" href="/system/ws/v12/interaction/activity/1011"/>
        <case id="1001">
            <ns2:link rel="case" href="/system/ws/v12/interaction/case/1001"/>
        </case>
        <department id="999">
            <ns3:name>Service</ns3:name>
        </department>
        <mode>
            <ns4:value>inbound</ns4:value>
            <ns4:displayValue>Inbound</ns4:displayValue>
        </mode>
        <type>
            <value>email</value>
            <displayValue>Email</displayValue>
            <subtype>
                <ns4:value>general</ns4:value>
                <ns4:displayValue>General</ns4:displayValue>
            </subtype>
        </type>
        <isSecure>false</isSecure>
        <sentOnBehalf>false</sentOnBehalf>
        <status>
            <value>assigned</value>
            <displayValue>Assigned</displayValue>
            <substatus>
                <ns4:value>in_progress</ns4:value>
                <ns4:displayValue>In Progress</ns4:displayValue>
            </substatus>
            <assigned>
                <user id="1002">
                    <ns3:name>JennyAnthony</ns3:name>
                    <ns3:firstName>Jenny</ns3:firstName>
                    <ns3:lastName>Anthony</ns3:lastName>
                </user>
                <activityFolder id="6">
                    <ns5:name>
                        <ns4:value>activities_current</ns4:value>
                        <ns4:displayValue>Current</ns4:displayValue>
                    </ns5:name>
                </activityFolder>
                <isPinned>false</isPinned>
                <isLocked>false</isLocked>
            </assigned>
        </status>
        <priority>2</priority>
        <created date="2016-03-29T18:18:10.000Z">
            <ns4:user id="12">
                <ns3:name>system</ns3:name>
                <ns3:firstName>System</ns3:firstName>
                <ns3:lastName>Services</ns3:lastName>
            </ns4:user>
        </created>
        <lastModified date="2016-03-29T18:40:32.000Z">
            <ns4:user id="1002">
                <ns3:name>JennyAnthony</ns3:name>
                <ns3:firstName>Jenny</ns3:firstName>
                <ns3:lastName>Anthony</ns3:lastName>
            </ns4:user>
        </lastModified>
        <dueDate>2016-04-06T07:00:00.000Z</dueDate>
        <subject>Issue with laptop configuration</subject>
        <language>
            <ns4:value>en</ns4:value>
            <ns4:displayValue>English</ns4:displayValue>
        </language>
        <customer id="1002">
            <ns6:link rel="customer" href="/system/ws/v12/interaction/customer/1002"/>
            <ns6:customerName>John Davis</ns6:customerName>
            <ns6:contactPersons>
                <ns7:contactPerson id="1002">
                    <ns7:isSystemCreated>false</ns7:isSystemCreated>
                    <ns7:firstName>John</ns7:firstName>
                    <ns7:lastName>Davis</ns7:lastName>
                    <ns7:contactPoints>
                        <ns8:contactPoint id="1004">
                            <ns8:type>
                                <ns8:value>email</ns8:value>
                                <ns8:displayValue>Email</ns8:displayValue>
                                <ns8:email>
                                    <ns8:emailAddress>johndavis@example.com</ns8:emailAddress>
                                </ns8:email>
                            </ns8:type>
                        </ns8:contactPoint>
                    </ns7:contactPoints>
                </ns7:contactPerson>
            </ns6:contactPersons>
        </customer>
        <classifications>
            <ns3:category id="456700000001000">
                <ns3:name>Laptop Configuration</ns3:name>
                <ns3:isComplaint>false</ns3:isComplaint>
            </ns3:category>
            <ns3:resolutionCode id="456700000001001">
                <ns3:name>Share Documentation</ns3:name>
            </ns3:resolutionCode>
        </classifications>
        <queue id="1001">
            <ns3:name>Email queue</ns3:name>
        </queue>
        <attachments>
            <ns12:count>0</ns12:count>
            <ns12:purgedCount>0</ns12:purgedCount>
            <ns12:link rel="attachment" href="/system/ws/v12/interaction/activity/1011/attachment"/>
        </attachments>
        <notes>
            <count>1</count>
            <Link rel="note" href="/system/ws/v12/interaction/activity/1011/note"/>
        </notes>
		<isContentPurged>false</isContentPurged>
        <contactPointData>johndavis@example.com</contactPointData>
        <payload>
            <email>
                <lastAction>
                    <displayValue/>
                </lastAction>
                <hasDraft>false</hasDraft>
                <leaveOpen>false</leaveOpen>
                <isEscalated>false</isEscalated>
                <isOutboundFailed>false</isOutboundFailed>
                <alias id="1000">
                    <ns13:name>alias</ns13:name>
                    <ns13:value>support@business.com</ns13:value>
                </alias>
                <date date="2016-03-29T18:18:10.000Z"/>
                <contents>
                    <content>
                        <ns4:type>text</ns4:type>
                        <ns4:value>
                            Hi,&#xD;
                            &#xD;
                            I bought a new XYZ laptop from your website. The laptop was delivered on the promised date. But the configuration that I had ordered and the configuration of the laptop that is delivered are different. My order no is 293028320. Please look into this issue, and resend the correct laptop. Also arrange to take the incorrect one from me.&#xD;
                            &#xD;
                            Thanks,&#xD;
                            John&#xD;
                            Visit ECE on YouTube&lt;https://www.youtube.com/user/egainchannel&gt; and LinkedIn&lt;https://www.linkedin.com/company/egain-corporation&gt;
                        </ns4:value>
                    </content>
                    <content>
                        <ns4:type>html</ns4:type>
                        <ns4:value>
                            &lt;html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"&gt;&#xD;
                            &lt;head&gt;&#xD;
                            &lt;meta http-equiv="Content-Type" content="text/html; charset=us-ascii"&gt;&#xD;
                            &lt;meta name="Generator" content="Microsoft Word 15 (filtered medium)"&gt;&#xD;
                            &lt;style&gt;&lt;!--&#xD;
                            /* Font Definitions */&#xD;
                            @font-face&#xD;
                            {font-family:"Cambria Math";&#xD;
                            panose-1:2 4 5 3 5 4 6 3 2 4;}&#xD;
                            @font-face&#xD;
                            {font-family:Calibri;&#xD;
                            panose-1:2 15 5 2 2 2 4 3 2 4;}&#xD;
                            /* Style Definitions */&#xD;
                            p.MsoNormal, li.MsoNormal, div.MsoNormal&#xD;
                            {margin:0in;&#xD;
                            margin-bottom:.0001pt;&#xD;
                            font-size:11.0pt;&#xD;
                            font-family:"Calibri",sans-serif;}&#xD;
                            a:link, span.MsoHyperlink&#xD;
                            {mso-style-priority:99;&#xD;
                            color:#0563C1;&#xD;
                            text-decoration:underline;}&#xD;
                            a:visited, span.MsoHyperlinkFollowed&#xD;
                            {mso-style-priority:99;&#xD;
                            color:#954F72;&#xD;
                            text-decoration:underline;}&#xD;
                            span.EmailStyle17&#xD;
                            {mso-style-type:personal-compose;&#xD;
                            font-family:"Calibri",sans-serif;&#xD;
                            color:windowtext;}&#xD;
                            .MsoChpDefault&#xD;
                            {mso-style-type:export-only;}&#xD;
                            @page WordSection1&#xD;
                            {size:8.5in 11.0in;&#xD;
                            margin:1.0in 1.0in 1.0in 1.0in;}&#xD;
                            div.WordSection1&#xD;
                            {page:WordSection1;}&#xD;
                            --&gt;&lt;/style&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;&#xD;
                            &lt;o:shapedefaults v:ext="edit" spidmax="1026" /&gt;&#xD;
                            &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;&#xD;
                            &lt;o:shapelayout v:ext="edit"&gt;&#xD;
                            &lt;o:idmap v:ext="edit" data="1" /&gt;&#xD;
                            &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;&#xD;
                            &lt;/head&gt;&#xD;
                            &lt;body lang="EN-US" link="#0563C1" vlink="#954F72"&gt;&#xD;
                            &lt;div class="WordSection1"&gt;&#xD;
                            &lt;p&gt;Hi,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&#xD;
                            &lt;p&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;&#xD;
                            &lt;p&gt;I bought a new XYZ laptop from your website. The laptop was delivered on the promised date. But the configuration that I had ordered and the configuration of the laptop that is delivered are different. My order no is 293028320. Please look&#xD;
                            into this issue, and resend the correct laptop. Also arrange to take the incorrect one from me.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&#xD;
                            &lt;p&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;&#xD;
                            &lt;p&gt;Thanks,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&#xD;
                            &lt;p&gt;John&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&#xD;
                            &lt;/div&gt;&#xD;
                            Visit ECE on &lt;a href="https://www.youtube.com/user/egainchannel"&gt;YouTube&lt;/a&gt; and&#xD;
                            &lt;a href="https://www.linkedin.com/company/egain-corporation"&gt;LinkedIn&lt;/a&gt;&#xD;
                            &lt;/body&gt;&#xD;
                            &lt;/html&gt;
                        </ns4:value>
                    </content>
                </contents>
                <emailAddresses>
                    <from>johndavis@example.com</from>
                    <to>
                        <address>johndavis@example.com</address>
                    </to>
                    <replyTo>
                        <address>support@business.com</address>
                    </replyTo>
                    <receiver>support@business.com</receiver>
                </emailAddresses>
            </email>
        </payload>
        <customAttributes>
            <ns4:customAttribute>
                <ns4:attribName>complainttype</ns4:attribName>
                <ns4:attribValues>
                    <ns4:attribValue>
                        <ns4:value>incorrect_order</ns4:value>
                        <ns4:displayValue>Incorrect Order</ns4:displayValue>
                    </ns4:attribValue>
                </ns4:attribValues>
            </ns4:customAttribute>
        </customAttributes>
    </activity>
</activities>

     


JSON

Request

Method URL
GET /ws/v12/interaction/activity/1011?$attribute=all

Request headers

Name Value
X-egain-session Valid session ID
Accept application/json
Accept-Language en-US

Response
HTTP/1.1 200 OK

Response headers

Name Value
X-egain-session current session ID
Content-Type application/json

Response body

{
    "activity": [
        {
            "link": {
                "rel": "self",
                "href": "/system/ws/v12/interaction/activity/1011"
            },
            "case": {
                "link": {
                    "rel": "case",
                    "href": "/system/ws/v12/interaction/case/1001"
                },
                "id": 1001
            },
            "department": {
                "name": "Service",
                "id": 999
            },
            "mode": {
                "value": "inbound",
                "displayValue": "Inbound"
            },
            "type": {
                "value": "email",
                "displayValue": "Email",
                "subtype": {
                    "value": "general",
                    "displayValue": "General"
                }
            },
            "isSecure": false,
            "sentOnBehalf": false,
            "status": {
                "value": "assigned",
                "displayValue": "Assigned",
                "substatus": {
                    "value": "in_progress",
                    "displayValue": "In Progress"
                },
                "assigned": {
                    "user": {
                        "name": "JennyAnthony",
                        "firstName": "Jenny",
                        "lastName": "Anthony",
                        "id": 1002
                    },
                    "activityFolder": {
                        "name": {
                            "value": "activities_current",
                            "displayValue": "Current"
                        },
                        "id": 6
                    },
                    "isPinned": false,
                    "isLocked": false
                }
            },
            "priority": "2",
            "created": {
                "user": {
                    "name": "system",
                    "firstName": "System",
                    "lastName": "Services",
                    "id": 12
                },
                "date": "2016-03-29T18:18:10.000Z"
            },
            "lastModified": {
                "user": {
                    "name": "JennyAnthony",
                    "firstName": "Jenny",
                    "lastName": "Anthony",
                    "id": 1002
                },
                "date": "2016-03-29T18:40:32.000Z"
            },
            "dueDate": "2016-04-06T07:00:00.000Z",
            "subject": "Issue with laptop configuration",
            "language":{
                "value": "en",
                "displayValue": "English"
            },
            "customer": {
                "link": {
                    "rel": "customer",
                    "href": "/system/ws/v12/interaction/customer/1002"
                },
                "customerName": "John Davis",
                "contactPersons": {
                    "contactPerson": [
                        {
                            "isSystemCreated": false,
                            "firstName": "John",
                            "lastName": "Davis",
                            "contactPoints": {
                                "contactPoint": [
                                    {
                                        "type": {
                                            "value": "email",
                                            "displayValue": "Email",
                                            "email": {
                                                "emailAddress": "johndavis@example.com"
                                            }
                                        },
                                        "id": 1004
                                    }
                                ]
                            },
                            "id": 1002
                        }
                    ]
                },
                "id": 1002
            },
            "classifications": {
                "category": [
                    {
                        "name": "Laptop Configuration",
                        "isComplaint": false,
                        "id": 456700000001000
                    }
                ],
                "resolutionCode": [
                    {
                        "name": "Share Documentation",
                        "id": 456700000001001
                    }
                ]
            },           
            "queue": {
                "name": "Email queue",
                "id": 1001
            },
            "attachments": {
                "count": 0,
                "purgedCount": 0,
                "link": {
                    "rel": "attachment",
                    "href": "/system/ws/v12/interaction/activity/1011/attachment"
                }
            },
            "notes": {
                "count": 1,
                "Link": {
                   "rel": "note",
                   "href": "/system/ws/v12/interaction/activity/1011/note"
                }
            },
            "contactPointData": "johndavis@example.com",
			"isContentPurged": false,
            "payload": {
                "email": {
                    "lastAction": {
                        "displayValue": ""
                    },
                    "hasDraft": false,
                    "leaveOpen": false,
                    "isEscalated": false,
                    "isOutboundFailed": false,
                    "alias": {
                        "name": "alias",
                        "value": "support@business.com",
                        "id": 1000
                    },
                    "date": {
                        "date": "2016-03-29T18:18:10.000Z"
                    },
                    "contents": {
                        "content": [
                            {
                                "type": "text",
                                "value": "Hi,\r\n\r\nI bought a new XYZ laptop from your website. The laptop was delivered on the promised date. But the configuration that I had ordered and the configuration of the laptop that is delivered are different. My order no is 293028320. Please look into this issue, and resend the correct laptop. Also arrange to take the incorrect one from me.\r\n\r\nThanks,\r\nJohn"
                            },
                            {
                                "type": "html",
                                "value": "<html xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:o=\"urn:schemas-microsoft-com:office:office\" xmlns:w=\"urn:schemas-microsoft-com:office:word\" xmlns:m=\"http://schemas.microsoft.com/office/2004/12/omml\" xmlns=\"http://www.w3.org/TR/REC-html40\">\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=us-ascii\">\r\n<meta name=\"Generator\" content=\"Microsoft Word 15 (filtered medium)\">\r\n<style><!--\r\n/* Font Definitions */\r\n@font-face\r\n\t{font-family:\"Cambria Math\";\r\n\tpanose-1:2 4 5 3 5 4 6 3 2 4;}\r\n@font-face\r\n\t{font-family:Calibri;\r\n\tpanose-1:2 15 5 2 2 2 4 3 2 4;}\r\n/* Style Definitions */\r\np.MsoNormal, li.MsoNormal, div.MsoNormal\r\n\t{margin:0in;\r\n\tmargin-bottom:.0001pt;\r\n\tfont-size:11.0pt;\r\n\tfont-family:\"Calibri\",sans-serif;}\r\na:link, span.MsoHyperlink\r\n\t{mso-style-priority:99;\r\n\tcolor:#0563C1;\r\n\ttext-decoration:underline;}\r\na:visited, span.MsoHyperlinkFollowed\r\n\t{mso-style-priority:99;\r\n\tcolor:#954F72;\r\n\ttext-decoration:underline;}\r\nspan.EmailStyle17\r\n\t{mso-style-type:personal-compose;\r\n\tfont-family:\"Calibri\",sans-serif;\r\n\tcolor:windowtext;}\r\n.MsoChpDefault\r\n\t{mso-style-type:export-only;}\r\n@page WordSection1\r\n\t{size:8.5in 11.0in;\r\n\tmargin:1.0in 1.0in 1.0in 1.0in;}\r\ndiv.WordSection1\r\n\t{page:WordSection1;}\r\n--></style><!--[if gte mso 9]><xml>\r\n<o:shapedefaults v:ext=\"edit\" spidmax=\"1026\" />\r\n</xml><![endif]--><!--[if gte mso 9]><xml>\r\n<o:shapelayout v:ext=\"edit\">\r\n<o:idmap v:ext=\"edit\" data=\"1\" />\r\n</o:shapelayout></xml><![endif]-->\r\n</head>\r\n<body lang=\"EN-US\" link=\"#0563C1\" vlink=\"#954F72\">\r\n<div class=\"WordSection1\">\r\n<p class=\"MsoNormal\">Hi,<o:p></o:p></p>\r\n<p class=\"MsoNormal\"><o:p>&nbsp;</o:p></p>\r\n<p class=\"MsoNormal\">I bought a new XYZ laptop from your website. The laptop was delivered on the promised date. But the configuration that I had ordered and the configuration of the laptop that is delivered are different. My order no is 293028320. Please look\r\n into this issue, and resend the correct laptop. Also arrange to take the incorrect one from me.<o:p></o:p></p>\r\n<p class=\"MsoNormal\"><o:p>&nbsp;</o:p></p>\r\n<p class=\"MsoNormal\">Thanks,<o:p></o:p></p>\r\n<p class=\"MsoNormal\">John<o:p></o:p></p></body>\r\n</html>"
                            }
                        ]
                    },
                    "emailAddresses": {
                        "from": "johndavis@example.com",
                        "to": {
                            "address": [
                                "johndavis@example.com"
                            ]
                        },
                        "replyTo": {
                            "address": [
                                "support@business.com"
                            ]
                        },
                        "receiver": "support@business.com"
                    }
                }
            },
            "customAttributes": {
                "customAttribute": [
                    {
                        "attribName": "complainttype",
                        "attribValues": {
                            "attribValue": [
                                {
                                    "value": "incorrect_order",
                                    "displayValue": "Incorrect Order"
                                }
                            ]
                        }
                    }
                ]
            },
            "id": 1011
        }
    ]
}

     


Example 2 - Get all attributes for a chat activity

This example demonstrates the following:

  • Getting all attributes of a single chat activity.
  • Representation of all attributes of a chat activity, including custom attributes. Note that payload.chat.transcript is returned in this case as only a single activity is requested. If multiple activities were requested, transcript node would be omitted even if payload were explicitly requested.

XML

Request

Method URL
GET /ws/v12/interaction/activity/1017?$attribute=all

Request headers

Name Value
X-egain-session Valid session ID
Accept application/xml
Accept-Language en-US

Response
HTTP/1.1 200 OK

Response headers

Name Value
X-egain-session current session ID
Content-Type application/xml

Response body

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<activities xmlns="http://bindings.egain.com/ws/model/v12/gen/interaction/activity"
xmlns:ns2="http://bindings.egain.com/ws/model/v12/gen/interaction/case"
xmlns:ns3="http://bindings.egain.com/ws/model/v12/gen/platform"
xmlns:ns4="http://bindings.egain.com/ws/model/v12/gen/common"
xmlns:ns5="http://bindings.egain.com/ws/model/v12/gen/interaction/folder"
xmlns:ns6="http://bindings.egain.com/ws/model/v12/gen/interaction/customer"
xmlns:ns7="http://bindings.egain.com/ws/model/v12/gen/interaction/contactperson"
xmlns:ns8="http://bindings.egain.com/ws/model/v12/gen/interaction/contactpoint"
xmlns:ns9="http://bindings.egain.com/ws/model/v12/gen/kb"
xmlns:ns10="http://bindings.egain.com/ws/model/v15/gen/kb/edition"
xmlns:ns11="http://bindings.egain.com/ws/model/v15/gen/kb/profile"
xmlns:ns12="http://bindings.egain.com/ws/model/v12/gen/interaction/attachment"
xmlns:ns13="http://bindings.egain.com/ws/model/v12/gen/mail/alias"
xmlns:ns14="http://bindings.egain.com/ws/model/v12/gen/live/entrypoint">
    <activity id="1017">
        <link rel="self" href="/system/ws/v12/interaction/activity/1017"/>
        <case id="1003">
            <ns2:link rel="case" href="/system/ws/v12/interaction/case/1003"/>
        </case>
        <department id="999">
            <ns3:name>Service</ns3:name>
        </department>
        <mode>
            <ns4:value>inbound</ns4:value>
            <ns4:displayValue>Inbound</ns4:displayValue>
        </mode>
        <type>
            <value>chat</value>
            <displayValue>Chat</displayValue>
            <subtype>
                <ns4:value>general</ns4:value>
                <ns4:displayValue>General</ns4:displayValue>
            </subtype>
        </type>
        <isSecure>false</isSecure>
        <sentOnBehalf>false</sentOnBehalf>
        <status>
            <value>completed</value>
            <displayValue>Completed</displayValue>
            <substatus>
                <ns4:value>done</ns4:value>
                <ns4:displayValue>Done</ns4:displayValue>
            </substatus>
            <assigned>
                <user id="1002">
                    <ns3:name>JennyAnthony</ns3:name>
                    <ns3:firstName>Jenny</ns3:firstName>
                    <ns3:lastName>Anthony</ns3:lastName>
                </user>
                <activityFolder id="7">
                    <ns5:name>
                        <ns4:value>activities_completed</ns4:value>
                        <ns4:displayValue>Completed</ns4:displayValue>
                    </ns5:name>
                </activityFolder>
                <isPinned>false</isPinned>
                <isLocked>false</isLocked>
            </assigned>
        </status>
        <created date="2016-04-01T21:42:41.000Z">
            <ns4:user id="12">
                <ns3:name>system</ns3:name>
                <ns3:firstName>System</ns3:firstName>
                <ns3:lastName>Services</ns3:lastName>
            </ns4:user>
        </created>
        <lastModified date="2016-04-01T21:43:13.000Z">
            <ns4:user id="1002">
                <ns3:name>JennyAnthony</ns3:name>
                <ns3:firstName>Jenny</ns3:firstName>
                <ns3:lastName>Anthony</ns3:lastName>
            </ns4:user>
        </lastModified>
        <subject>I am looking for a new laptop.</subject>
        <customer id="1003">
            <ns6:link rel="customer" href="/system/ws/v12/interaction/customer/1003"/>
            <ns6:customerName>amy</ns6:customerName>
            <ns6:contactPersons>
                <ns7:contactPerson id="1003">
                    <ns7:isSystemCreated>false</ns7:isSystemCreated>
                    <ns7:firstName>amy</ns7:firstName>
                    <ns7:contactPoints>
                        <ns8:contactPoint id="1008">
                            <ns8:type>
                                <ns8:value>email</ns8:value>
                                <ns8:displayValue>Email</ns8:displayValue>
                                <ns8:email>
                                    <ns8:emailAddress>amy@example.com</ns8:emailAddress>
                                </ns8:email>
                            </ns8:type>
                        </ns8:contactPoint>
                    </ns7:contactPoints>
                </ns7:contactPerson>
            </ns6:contactPersons>
        </customer>
        <classifications>
            <ns3:category id="456700000001002">
                <ns3:name>Laptop Offers</ns3:name>
                <ns3:isComplaint>false</ns3:isComplaint>
            </ns3:category>
            <ns3:category id="456700000001003">
                <ns3:name>Laptop Options</ns3:name>
                <ns3:isComplaint>false</ns3:isComplaint>
            </ns3:category>
            <ns3:resolutionCode id="456700000001001">
                <ns3:name>Share Documentation</ns3:name>
            </ns3:resolutionCode>
        </classifications>
        <queue id="1000">
            <ns3:name>Chat queue</ns3:name>
        </queue>
        <attachments>
            <ns12:count>0</ns12:count>
            <ns12:purgedCount>0</ns12:purgedCount>
            <ns12:link rel="attachment" href="/system/ws/v12/interaction/activity/1017/attachment"/>
        </attachments>
        <notes>
            <count>0</count>
            <Link rel="note" href="/system/ws/v12/interaction/activity/1017/note"/>
        </notes>
		<isContentPurged>false</isContentPurged>
        <contactPointData>amy@example.com</contactPointData>
        <payload>
            <chat>
                <isConference>
                    <value>false</value>
                </isConference>
                <entryPoint id="1000">
                    <ns14:name>Default Entry Point</ns14:name>
                </entryPoint>
                <closedBy id="1002">
                    <ns3:name>JennyAnthony</ns3:name>
                    <ns3:firstName>Jenny</ns3:firstName>
                    <ns3:lastName>Anthony</ns3:lastName>
                </closedBy>
                <clientInfo>
                    <clientIp>10.10.16.15</clientIp>
                    <userAgent>Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko</userAgent>
                    <referrerUrl>http://10.10.24.42/system/templates/chat/sunburst/chat.html?entryPointId=1000&amp;templateName=sunburst&amp;languageCode=en&amp;countryCode=US&amp;ver=v11</referrerUrl>
                </clientInfo>
                <custDisplayName>amy</custDisplayName>
                <origDepartment id="999">
                    <ns3:name>Service</ns3:name>
                </origDepartment>
                <visitorInfo>
                    <sessionId>D36d04d882-152a-4f3d-9a6e-277c42edd6e8</sessionId>
                    <userId>D10a210e70-cc2f-43f7-89d1-50e11d59a7ae</userId>
                </visitorInfo>
                <transcript>
                    <content>
                        <ns4:type>text</ns4:type>
                        <ns4:value>
                            &lt;b&gt;CHAT STARTED AT&lt;/b&gt; 21:42 01 Apr 2016&#xD;
                            &#xD;
                            amy 9:42 PM : I am looking for a new laptop.&#xD;
                            system 9:42 PM : You are now chatting with agent&#xD;
                            agent 9:43 PM : Please visit our retail outlet for a better experience.&#xD;
                            system 9:43 PM : agent has ended the chat&#xD;
                            &#xD;
                            &lt;b&gt;CHAT ENDED AT&lt;/b&gt; 21:43 01 Apr 2016
                        </ns4:value>
                    </content>
                    <content>
                        <ns4:type>html</ns4:type>
                        <ns4:value>&lt;HTML&gt;&lt;style type="text/css"&gt;&lt;/style&gt;&lt;BODY&gt;&lt;div&gt;&lt;font class="eGainLvSystemMailTranscript"&gt;&lt;b&gt;CHAT STARTED AT&lt;/b&gt; 21:42 01 Apr 2016&amp;nbsp;&lt;/font&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="eGainLvCustomerMailTranscript"&gt;&lt;b&gt;amy&amp;nbsp;9:42 PM:&lt;/b&gt;&amp;nbsp;I am looking for a new laptop.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="eGainLvSystemMailTranscript"&gt;You are now chatting with agent&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="eGainLvAgentMailTranscript"&gt;&lt;b&gt;agent&amp;nbsp;9:43 PM:&lt;/b&gt;&amp;nbsp;Please visit our retail outlet for a better experience.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="eGainLvSystemMailTranscript"&gt;agent has ended the chat&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;font class="eGainLvSystemMailTranscript"&gt;&lt;b&gt;CHAT ENDED AT&lt;/b&gt; 21:43 01 Apr 2016&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;/BODY&gt;&lt;/HTML&gt;</ns4:value>
                    </content>
                </transcript>
            </chat>
        </payload>
        <customAttributes>
            <ns4:customAttribute>
                <ns4:attribName>ordertype</ns4:attribName>
                <ns4:attribValues>
                    <ns4:attribValue>
                        <ns4:value>2</ns4:value>
                        <ns4:displayValue>2</ns4:displayValue>
                    </ns4:attribValue>
                    <ns4:attribValue>
                        <ns4:value>3</ns4:value>
                        <ns4:displayValue>3</ns4:displayValue>
                    </ns4:attribValue>
                </ns4:attribValues>
            </ns4:customAttribute>
        </customAttributes>
    </activity>
</activities>

     


JSON

Request

Method URL
GET /ws/v12/interaction/activity/1017?$attribute=all

Request headers

Name Value
X-egain-session Valid session ID
Accept application/json
Accept-Language en-US

Response
HTTP/1.1 200 OK

Response headers

Name Value
X-egain-session current session ID
Content-Type application/json

Response body

{
    "activity": [
        {
            "link": {
                "rel": "self",
                "href": "/system/ws/v12/interaction/activity/1017"
            },
            "case": {
                "link": {
                    "rel": "case",
                    "href": "/system/ws/v12/interaction/case/1003"
                },
                "id": 1003
            },
            "department": {
                "name": "Service",
                "id": 999
            },
            "mode": {
                "value": "inbound",
                "displayValue": "Inbound"
            },
            "type": {
                "value": "chat",
                "displayValue": "Chat",
                "subtype": {
                    "value": "general",
                    "displayValue": "General"
                }
            },
            "isSecure": false,
            "sentOnBehalf": false,
            "status": {
                "value": "completed",
                "displayValue": "Completed",
                "substatus": {
                    "value": "done",
                    "displayValue": "Done"
                },
                "assigned": {
                    "user": {
                        "name": "JennyAnthony",
                        "firstName": "Jenny",
                        "lastName": "Anthony",
                        "id": 1002
                    },
                    "activityFolder": {
                        "name": {
                            "value": "activities_completed",
                            "displayValue": "Completed"
                        },
                        "id": 7
                    },
                    "isPinned": false,
                    "isLocked": false
                }
            },
            "created": {
                "user": {
                    "name": "system",
                    "firstName": "System",
                    "lastName": "Services",
                    "id": 12
                },
                "date": "2016-04-01T21:42:41.000Z"
            },
            "lastModified": {
                "user": {
                    "name": "JennyAnthony",
                    "firstName": "Jenny",
                    "lastName": "Anthony",
                    "id": 1002
                },
                "date": "2016-04-01T21:43:13.000Z"
            },
            "subject": "I am looking for a new laptop.",
            "customer": {
                "link": {
                    "rel": "customer",
                    "href": "/system/ws/v12/interaction/customer/1003"
                },
                "customerName": "amy  ",
                "contactPersons": {
                    "contactPerson": [
                        {
                            "isSystemCreated": false,
                            "firstName": "amy",
                            "contactPoints": {
                                "contactPoint": [
                                    {
                                        "type": {
                                            "value": "email",
                                            "displayValue": "Email",
                                            "email": {
                                                "emailAddress": "amy@example.com"
                                            }
                                        },
                                        "id": 1008
                                    }
                                ]
                            },
                            "id": 1003
                        }
                    ]
                },
                "id": 1003
            },
            "classifications": {
                "category": [
                    {
                        "name": "Laptop Offers",
                        "isComplaint": false,
                        "id": 456700000001002
                    },
                    {
                        "name": "Laptop Options",
                        "isComplaint": false,
                        "id": 456700000001003
                    }
                ],
                "resolutionCode": [
                    {
                        "name": "Share Documentation",
                        "id": 456700000001001
                    }
                ]
            },
            "queue": {
                "name": "Chat queue",
                "id": 1000
            },
            "attachments": {
                "count": 0,
                "purgedCount": 0,
                "link": {
                    "rel": "attachment",
                    "href": "/system/ws/v12/interaction/activity/1017/attachment"
                }
            },
            "notes": {
                "count": 0,
                "Link": {
                   "rel": "note",
                   "href": "/system/ws/v12/interaction/activity/1017/note"
                }
            },
            "contactPointData": "amy@example.com",
			"isContentPurged": false,
            "payload": {
                "chat": {
                    "isConference": {
                        "value": false
                    },
                    "entryPoint": {
                        "name": "Default Entry Point",
                        "id": 1000
                    },
                    "closedBy": {
                        "name": "JennyAnthony",
                        "firstName": "Jenny",
                        "lastName": "Anthony",
                        "id": 1002
                    },
                    "clientInfo": {
                        "clientIp": "10.10.16.15",
                        "userAgent": "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko",
                        "referrerUrl": "http://10.10.24.42/system/templates/chat/sunburst/chat.html?entryPointId=1000&templateName=sunburst&languageCode=en&countryCode=US&ver=v11"
                    },
                    "custDisplayName": "amy",
                    "origDepartment": {
                        "name": "Service",
                        "id": 999
                    },
                    visitorInfo":{
                        "sessionId": "D36d04d882-152a-4f3d-9a6e-277c42edd6e8",
                        "userId": "D10a210e70-cc2f-43f7-89d1-50e11d59a7ae"
                    },
                    "transcript": {
                        "content": [
                            {
                                "type": "text",
                                "value": "<b>CHAT STARTED AT</b> 21:42 01 Apr 2016\r\n\r\namy 9:42 PM : I am looking for a new laptop.\r\nsystem 9:42 PM : You are now chatting with agent\r\nagent 9:43 PM : Please visit our retail outlet for a better experience.\r\nsystem 9:43 PM : agent has ended the chat\r\n\r\n<b>CHAT ENDED AT</b> 21:43 01 Apr 2016"
                            },
                            {
                                "type": "html",
                                "value": "<HTML><style type=\"text/css\"></style><BODY><div><font class=\"eGainLvSystemMailTranscript\"><b>CHAT STARTED AT</b> 21:42 01 Apr 2016&nbsp;</font><br></div><div><font class=\"eGainLvCustomerMailTranscript\"><b>amy&nbsp;9:42 PM:</b>&nbsp;I am looking for a new laptop.</font></div><div><font class=\"eGainLvSystemMailTranscript\">You are now chatting with agent</font></div><div><font class=\"eGainLvAgentMailTranscript\"><b>agent&nbsp;9:43 PM:</b>&nbsp;Please visit our retail outlet for a better experience.</font></div><div><font class=\"eGainLvSystemMailTranscript\">agent has ended the chat</font></div><div><br><font class=\"eGainLvSystemMailTranscript\"><b>CHAT ENDED AT</b> 21:43 01 Apr 2016&nbsp;</font></div></BODY></HTML>"
                            }
                        ]
                    }
                }
            },
            "customAttributes": {
                "customAttribute": [
                    {
                        "attribName": "ordertype",
                        "attribValues": {
                            "attribValue": [
                                {
                                    "value": "2",
                                    "displayValue": "2"
                                },
                                {
                                    "value": "3",
                                    "displayValue": "3"
                                }
                            ]
                        }
                    }
                ]
            },
            "id": 1017
        }
    ]
}

     


Example 4 - Get all attributes for a call track activity

This example demonstrates the following:

  • Getting all attributes of a single call track activity.
  • Representation of all attributes of a call track activity, including custom attributes. Note that payload is returned in this case as only a single activity is requested. If multiple activities were requested, "payload" node would be omitted even if payload were explicitly requested..
    This representation (request and response, except for the activity type) is similar for a task and any user created activity types.

XML

Request

Method URL
GET /ws/v12/interaction/activity/1019?$attribute=all

Request headers

Name Value
X-egain-session Valid session ID
Accept application/xml
Accept-Language en-US

Response
HTTP/1.1 200 OK

Response headers

Name Value
X-egain-session current session ID
Content-Type application/xml

Response body

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<activities xmlns="http://bindings.egain.com/ws/model/v12/gen/interaction/activity"
xmlns:ns2="http://bindings.egain.com/ws/model/v12/gen/interaction/case"
xmlns:ns3="http://bindings.egain.com/ws/model/v12/gen/platform"
xmlns:ns4="http://bindings.egain.com/ws/model/v12/gen/common"
xmlns:ns5="http://bindings.egain.com/ws/model/v12/gen/interaction/folder"
xmlns:ns6="http://bindings.egain.com/ws/model/v12/gen/interaction/customer"
xmlns:ns7="http://bindings.egain.com/ws/model/v12/gen/interaction/contactperson"
xmlns:ns8="http://bindings.egain.com/ws/model/v12/gen/interaction/contactpoint"
xmlns:ns9="http://bindings.egain.com/ws/model/v12/gen/kb"
xmlns:ns10="http://bindings.egain.com/ws/model/v15/gen/kb/edition"
xmlns:ns11="http://bindings.egain.com/ws/model/v15/gen/kb/profile"
xmlns:ns12="http://bindings.egain.com/ws/model/v12/gen/interaction/attachment"
xmlns:ns13="http://bindings.egain.com/ws/model/v12/gen/mail/alias"
xmlns:ns14="http://bindings.egain.com/ws/model/v12/gen/live/entrypoint">
    <activity id="1019">
        <link rel="self" href="/system/ws/v12/interaction/activity/1019"/>
        <case id="1002">
            <ns2:link rel="case" href="/system/ws/v12/interaction/case/1002"/>
        </case>
        <department id="999">
            <ns3:name>Service</ns3:name>
        </department>
        <mode>
            <ns4:value>outbound</ns4:value>
            <ns4:displayValue>Outbound</ns4:displayValue>
        </mode>
        <type>
            <value>call_track</value>
            <displayValue>Calltrack</displayValue>
            <subtype>
                <ns4:value>general</ns4:value>
                <ns4:displayValue>General</ns4:displayValue>
            </subtype>
        </type>
        <isSecure>false</isSecure>
        <sentOnBehalf>false</sentOnBehalf>
        <status>
            <value>assigned</value>
            <displayValue>Assigned</displayValue>
            <substatus>
                <ns4:value>in_progress</ns4:value>
                <ns4:displayValue>In Progress</ns4:displayValue>
            </substatus>
            <assigned>
                <user id="1002">
                    <ns3:name>JennyAnthony</ns3:name>
                    <ns3:firstName>Jenny</ns3:firstName>
                    <ns3:lastName>Anthony</ns3:lastName>
                </user>
                <activityFolder id="6">
                    <ns5:name>
                        <ns4:value>activities_current</ns4:value>
                        <ns4:displayValue>Current</ns4:displayValue>
                    </ns5:name>
                </activityFolder>
                <isPinned>false</isPinned>
                <isLocked>false</isLocked>
            </assigned>
        </status>
        <created date="2016-04-01T22:00:52.000Z">
            <ns4:user id="1002">
                <ns3:name>JennyAnthony</ns3:name>
                <ns3:firstName>Jenny</ns3:firstName>
                <ns3:lastName>Anthony</ns3:lastName>
            </ns4:user>
        </created>
        <lastModified date="2016-04-08T23:42:16.000Z">
            <ns4:user id="1002">
                <ns3:name>JennyAnthony</ns3:name>
                <ns3:firstName>Jenny</ns3:firstName>
                <ns3:lastName>Anthony</ns3:lastName>
            </ns4:user>
        </lastModified>
        <subject>Summary of phone call [#1002]</subject>
        <userLastWorked id="1002">
            <ns3:name>JennyAnthony</ns3:name>
            <ns3:firstName>Jenny</ns3:firstName>
            <ns3:lastName>Anthony</ns3:lastName>
        </userLastWorked>
        <customer id="1004">
            <ns6:link rel="customer" href="/system/ws/v12/interaction/customer/1004"/>
            <ns6:customerName>Oliver</ns6:customerName>
            <ns6:contactPersons>
                <ns7:contactPerson id="1004">
                    <ns7:isSystemCreated>false</ns7:isSystemCreated>
                    <ns7:firstName>Oliver</ns7:firstName>
                    <ns7:contactPoints>
                        <ns8:contactPoint id="1011">
                            <ns8:type>
                                <ns8:value>phone</ns8:value>
                                <ns8:displayValue>Telephone</ns8:displayValue>
                                <ns8:phone>
                                    <ns8:type>
                                        <ns4:value>mobile</ns4:value>
                                        <ns4:displayValue>Cell</ns4:displayValue>
                                    </ns8:type>
                                    <ns8:phoneNo>408-980-8765</ns8:phoneNo>
                                </ns8:phone>
                            </ns8:type>
                        </ns8:contactPoint>
                    </ns7:contactPoints>
                </ns7:contactPerson>
            </ns6:contactPersons>
        </customer>
        <classifications>
            <ns3:category id="456700000001000">
                <ns3:name>Laptop Configuration</ns3:name>
                <ns3:isComplaint>false</ns3:isComplaint>
            </ns3:category>
            <ns3:resolutionCode id="456700000001001">
                <ns3:name>Share Documentation</ns3:name>
            </ns3:resolutionCode>
        </classifications>
        <queue id="1002">
            <ns3:name>Call queue</ns3:name>
        </queue>
        <attachments>
            <ns12:count>0</ns12:count>
            <ns12:purgedCount>0</ns12:purgedCount>
            <ns12:link rel="attachment" href="/system/ws/v12/interaction/activity/1019/attachment"/>
        </attachments>
        <notes>
            <count>0</count>
             <Link rel="note" href="/system/ws/v12/interaction/activity/1019/note"/>
        </notes>
		<isContentPurged>false</isContentPurged>
        <contactPointData>408-980-8765</contactPointData>
        <payload>
            <calltrack>
                <contents>
                    <content>
                        <ns4:type>text</ns4:type>
                        <ns4:value>Call regarding laptop issues.</ns4:value>
                    </content>
                </contents>
            </calltrack>
        </payload>
        <customAttributes>
            <ns4:customAttribute>
                <ns4:attribName>complainttype</ns4:attribName>
                <ns4:attribValues>
                    <ns4:attribValue>
                        <ns4:value>defective_product</ns4:value>
                        <ns4:displayValue>Defective Product</ns4:displayValue>
                    </ns4:attribValue>
                </ns4:attribValues>
            </ns4:customAttribute>
        </customAttributes>
    </activity>
</activities>

     


JSON

Request

Method URL
GET /ws/v12/interaction/activity/1019?$attribute=all

Request headers

Name Value
X-egain-session Valid session ID
Accept application/json
Accept-Language en-US

Response
HTTP/1.1 200 OK

Response headers

Name Value
X-egain-session current session ID
Content-Type application/json

Response body

{
    "activity": [
        {
            "link": {
                "rel": "self",
                "href": "/system/ws/v12/interaction/activity/1019"
            },
            "case": {
                "link": {
                    "rel": "case",
                    "href": "/system/ws/v12/interaction/case/1002"
                },
                "id": 1002
            },
            "department": {
                "name": "Service",
                "id": 999
            },
            "mode": {
                "value": "outbound",
                "displayValue": "Outbound"
            },
            "type": {
                "value": "call_track",
                "displayValue": "Calltrack",
                "subtype": {
                    "value": "general",
                    "displayValue": "General"
                }
            },
            "isSecure": false,
            "sentOnBehalf": false,
            "status": {
                "value": "assigned",
                "displayValue": "Assigned",
                "substatus": {
                    "value": "in_progress",
                    "displayValue": "In Progress"
                },
                "assigned": {
                    "user": {
                        "name": "JennyAnthony",
                        "firstName": "Jenny",
                        "lastName": "Anthony",
                        "id": 1002
                    },
                    "activityFolder": {
                        "name": {
                            "value": "activities_current",
                            "displayValue": "Current"
                        },
                        "id": 6
                    },
                    "isPinned": false,
                    "isLocked": false
                }
            },
            "created": {
                "user": {
                    "name": "JennyAnthony",
                    "firstName": "Jenny",
                    "lastName": "Anthony",
                    "id": 1002
                },
                "date": "2016-04-01T22:00:52.000Z"
            },
            "lastModified": {
                "user": {
                    "name": "JennyAnthony",
                    "firstName": "Jenny",
                    "lastName": "Anthony",
                    "id": 1002
                },
                "date": "2016-04-08T23:42:16.000Z"
            },
            "subject": "Summary of phone call [#1002]",
            "userLastWorked": {
                "name": "JennyAnthony",
                "firstName": "Jenny",
                "lastName": "Anthony",
                "id": 1002
            },
            "customer": {
                "link": {
                    "rel": "customer",
                    "href": "/system/ws/v12/interaction/customer/1004"
                },
                "customerName": "Oliver  ",
                "contactPersons": {
                    "contactPerson": [
                        {
                            "isSystemCreated": false,
                            "firstName": "Oliver",
                            "contactPoints": {
                                "contactPoint": [
                                    {
                                        "type": {
                                            "value": "phone",
                                            "displayValue": "Telephone",
                                            "phone": {
                                                "type": {
                                                    "value": "mobile",
                                                    "displayValue": "Cell"
                                                },
                                                "phoneNo": "408-980-8765"
                                            }
                                        },
                                        "id": 1011
                                    }
                                ]
                            },
                            "id": 1004
                        }
                    ]
                },
                "id": 1004
            },
            "classifications": {
                "category": [
                    {
                        "name": "Laptop Configuration",
                        "isComplaint": false,
                        "id": 456700000001000
                    }
                ],
                "resolutionCode": [
                    {
                        "name": "Share Documentation",
                        "id": 456700000001001
                    }
                ]
            },
            "queue": {
                "name": "Call queue",
                "id": 1002
            },
            "attachments": {
                "count": 0,
                "purgedCount": 0,
                "link": {
                    "rel": "attachment",
                    "href": "/system/ws/v12/interaction/activity/1019/attachment"
                }
            },
            "notes": {
                "count": 0,
                "Link": {
                   "rel": "note",
                   "href": "/system/ws/v12/interaction/activity/1019/note"
                }
            },
            "contactPointData": "408-980-8765",
			"isContentPurged": false,
            "payload": {
                "calltrack": {
                    "contents": {
                        "content": [
                            {
                                "type": "text",
                                "value": "Call regarding laptop issues."
                            }
                        ]
                    }
                }
            },
            "customAttributes": {
                "customAttribute": [
                    {
                        "attribName": "complainttype",
                        "attribValues": {
                            "attribValue": [
                                {
                                    "value": "defective_product",
                                    "displayValue": "Defective Product"
                                }
                            ]
                        }
                    },
                    {
                        "attribName": "ordertype",
                        "attribValues": {
                            "attribValue": [
                                {
                                    "value": "2",
                                    "displayValue": "2"
                                },
                                {
                                    "value": "3",
                                    "displayValue": "3"
                                }
                            ]
                        }
                    }
                ]
            },
            "id": 1019
        }
    ]
}

     


Example 6 - Get an additional attribute for multiple activities sorted on department name

This example demonstrates the following:

  • Getting summary attributes and an additional attribute for multiple activities. The additional attribute in this example is "created".
  • Sorting on department name, in ascending order.

XML

Request

Method URL
GET /ws/v12/interaction/activity/1011,1014,1018?$attribute=created

Request headers

Name Value
X-egain-session Valid session ID
Accept application/xml
Accept-Language en-US

Response
HTTP/1.1 200 OK

Response headers

Name Value
X-egain-session current session ID
Content-Type application/xml

Response body

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<activities xmlns="http://bindings.egain.com/ws/model/v12/gen/interaction/activity"
xmlns:ns2="http://bindings.egain.com/ws/model/v12/gen/interaction/case"
xmlns:ns3="http://bindings.egain.com/ws/model/v12/gen/platform"
xmlns:ns4="http://bindings.egain.com/ws/model/v12/gen/common"
xmlns:ns5="http://bindings.egain.com/ws/model/v12/gen/interaction/folder"
xmlns:ns6="http://bindings.egain.com/ws/model/v12/gen/interaction/customer"
xmlns:ns7="http://bindings.egain.com/ws/model/v12/gen/interaction/contactperson"
xmlns:ns8="http://bindings.egain.com/ws/model/v12/gen/interaction/contactpoint"
xmlns:ns9="http://bindings.egain.com/ws/model/v12/gen/kb"
xmlns:ns10="http://bindings.egain.com/ws/model/v15/gen/kb/edition"
xmlns:ns11="http://bindings.egain.com/ws/model/v15/gen/kb/profile"
xmlns:ns12="http://bindings.egain.com/ws/model/v12/gen/interaction/attachment"
xmlns:ns13="http://bindings.egain.com/ws/model/v12/gen/mail/alias"
xmlns:ns14="http://bindings.egain.com/ws/model/v12/gen/live/entrypoint">
    <activity id="1011">
        <link rel="self" href="/system/ws/v12/interaction/activity/1011"/>
        <case id="1001">
            <ns2:link rel="case" href="/system/ws/v12/interaction/case/1001"/>
        </case>
        <department id="1001">
            <ns3:name>Call Department</ns3:name>
        </department>
        <mode>
            <ns4:value>inbound</ns4:value>
            <ns4:displayValue>Inbound</ns4:displayValue>
        </mode>
        <type>
            <value>email</value>
            <displayValue>Email</displayValue>
            <subtype>
                <ns4:value>general</ns4:value>
                <ns4:displayValue>General</ns4:displayValue>
            </subtype>
        </type>
        <isSecure>false</isSecure>
        <sentOnBehalf>false</sentOnBehalf>
        <status>
            <value>assigned</value>
            <displayValue>Assigned</displayValue>
            <substatus>
                <ns4:value>in_progress</ns4:value>
                <ns4:displayValue>In Progress</ns4:displayValue>
            </substatus>
            <assigned>
                <user id="1002">
                    <ns3:name>JennyAnthony</ns3:name>
                    <ns3:firstName>Jenny</ns3:firstName>
                    <ns3:lastName>Anthony</ns3:lastName>
                </user>
                <activityFolder id="6">
                    <ns5:name>
                        <ns4:value>activities_current</ns4:value>
                        <ns4:displayValue>Current</ns4:displayValue>
                    </ns5:name>
                </activityFolder>
                <isPinned>false</isPinned>
                <isLocked>false</isLocked>
            </assigned>
        </status>
        <priority>2</priority>
        <created date="2016-03-29T18:18:10.000Z">
            <ns4:user id="12">
                <ns3:name>system</ns3:name>
                <ns3:firstName>System</ns3:firstName>
                <ns3:lastName>Services</ns3:lastName>
            </ns4:user>
        </created>
        <lastModified date="2016-03-29T18:40:32.000Z">
            <ns4:user id="1002">
                <ns3:name>JennyAnthony</ns3:name>
                <ns3:firstName>Jenny</ns3:firstName>
                <ns3:lastName>Anthony</ns3:lastName>
            </ns4:user>
        </lastModified>
        <dueDate>2016-04-06T07:00:00.000Z</dueDate>
        <subject>Issue with laptop configuration</subject>
        <customer id="1002">
            <ns6:link rel="customer" href="/system/ws/v12/interaction/customer/1002"/>
            <ns6:customerName>John Davis</ns6:customerName>
            <ns6:contactPersons>
                <ns7:contactPerson id="1002">
                    <ns7:isSystemCreated>false</ns7:isSystemCreated>
                    <ns7:firstName>John</ns7:firstName>
                    <ns7:lastName>Davis</ns7:lastName>
                    <ns7:contactPoints>
                        <ns8:contactPoint id="1004">
                            <ns8:type>
                                <ns8:value>email</ns8:value>
                                <ns8:displayValue>Email</ns8:displayValue>
                                <ns8:email>
                                    <ns8:emailAddress>johndavis@example.com</ns8:emailAddress>
                                </ns8:email>
                            </ns8:type>
                        </ns8:contactPoint>
                    </ns7:contactPoints>
                </ns7:contactPerson>
            </ns6:contactPersons>
        </customer>
        <queue id="1001">
            <ns3:name>Email queue</ns3:name>
        </queue>
        <attachments>
            <ns12:count>0</ns12:count>
            <ns12:purgedCount>0</ns12:purgedCount>
            <ns12:link rel="attachment" href="/system/ws/v12/interaction/activity/1011/attachment"/>
        </attachments>
        <notes>
            <count>1</count>
            <Link rel="note" href="/system/ws/v12/interaction/activity/1011/note"/>
        </notes>
		<isContentPurged>false</isContentPurged>
    </activity>
    <activity id="1014">
        <link rel="self" href="/system/ws/v12/interaction/activity/1014"/>
        <case id="1002">
            <ns2:link rel="case" href="/system/ws/v12/interaction/case/1002"/>
        </case>
        <department id="999">
            <ns3:name>Service</ns3:name>
        </department>
        <mode>
            <ns4:value>none</ns4:value>
            <ns4:displayValue>None</ns4:displayValue>
        </mode>
        <type>
            <value>web_activity</value>
            <displayValue>Web Activity</displayValue>
            <subtype>
                <ns4:value>general</ns4:value>
                <ns4:displayValue>General</ns4:displayValue>
            </subtype>
        </type>
        <isSecure>false</isSecure>
        <sentOnBehalf>false</sentOnBehalf>
        <status>
            <value>completed</value>
            <displayValue>Completed</displayValue>
            <substatus>
                <ns4:value>done</ns4:value>
                <ns4:displayValue>Done</ns4:displayValue>
            </substatus>
            <assigned>
                <activityFolder id="7">
                    <ns5:name>
                        <ns4:value>activities_completed</ns4:value>
                        <ns4:displayValue>Completed</ns4:displayValue>
                    </ns5:name>
                </activityFolder>
                <isPinned>false</isPinned>
                <isLocked>true</isLocked>
            </assigned>
        </status>
        <created date="2016-04-01T20:59:30.000Z">
            <ns4:user id="17">
                <ns3:name>sscustomer</ns3:name>
                <ns3:firstName>SS Customer</ns3:firstName>
                <ns3:lastName>SS Customer</ns3:lastName>
            </ns4:user>
        </created>
        <lastModified date="2016-04-01T21:21:58.000Z"/>
        <subject/>
        <customer id="1002">
            <ns6:link rel="customer" href="/system/ws/v12/interaction/customer/1002"/>
            <ns6:customerName>John Davis</ns6:customerName>
            <ns6:contactPersons>
                <ns7:contactPerson id="1002">
                    <ns7:isSystemCreated>false</ns7:isSystemCreated>
                    <ns7:firstName>John</ns7:firstName>
                    <ns7:lastName>Davis</ns7:lastName>
                </ns7:contactPerson>
            </ns6:contactPersons>
        </customer>
        <attachments>
            <ns12:count>0</ns12:count>
            <ns12:purgedCount>0</ns12:purgedCount>
            <ns12:link rel="attachment" href="/system/ws/v12/interaction/activity/1014/attachment"/>
        </attachments>
        <notes>
            <count>0</count>
            <Link rel="note" href="/system/ws/v12/interaction/activity/1014/note"/>
        </notes>
		<isContentPurged>false</isContentPurged>
    </activity>
    <activity id="1018">
        <link rel="self" href="/system/ws/v12/interaction/activity/1018"/>
        <case id="1004">
            <ns2:link rel="case" href="/system/ws/v12/interaction/case/1004"/>
        </case>
        <department id="999">
            <ns3:name>Service</ns3:name>
        </department>
        <mode>
            <ns4:value>inbound</ns4:value>
            <ns4:displayValue>Inbound</ns4:displayValue>
        </mode>
        <type>
            <value>chat</value>
            <displayValue>Chat</displayValue>
            <subtype>
                <ns4:value>general</ns4:value>
                <ns4:displayValue>General</ns4:displayValue>
            </subtype>
        </type>
        <isSecure>false</isSecure>
        <sentOnBehalf>false</sentOnBehalf>
        <status>
            <value>completed</value>
            <displayValue>Completed</displayValue>
            <substatus>
                <ns4:value>done</ns4:value>
                <ns4:displayValue>Done</ns4:displayValue>
            </substatus>
            <assigned>
                <user id="1002">
                    <ns3:name>JennyAnthony</ns3:name>
                    <ns3:firstName>Jenny</ns3:firstName>
                    <ns3:lastName>Anthony</ns3:lastName>
                </user>
                <activityFolder id="7">
                    <ns5:name>
                        <ns4:value>activities_completed</ns4:value>
                        <ns4:displayValue>Completed</ns4:displayValue>
                    </ns5:name>
                </activityFolder>
                <isPinned>false</isPinned>
                <isLocked>false</isLocked>
            </assigned>
        </status>
        <created date="2016-04-01T21:43:57.000Z">
            <ns4:user id="12">
                <ns3:name>system</ns3:name>
                <ns3:firstName>System</ns3:firstName>
                <ns3:lastName>Services</ns3:lastName>
            </ns4:user>
        </created>
        <lastModified date="2016-04-01T22:00:44.000Z">
            <ns4:user id="1002">
                <ns3:name>JennyAnthony</ns3:name>
                <ns3:firstName>Jenny</ns3:firstName>
                <ns3:lastName>Anthony</ns3:lastName>
            </ns4:user>
        </lastModified>
        <subject>hi</subject>
        <customer id="1003">
            <ns6:link rel="customer" href="/system/ws/v12/interaction/customer/1003"/>
            <ns6:customerName>amy</ns6:customerName>
            <ns6:contactPersons>
                <ns7:contactPerson id="1003">
                    <ns7:isSystemCreated>false</ns7:isSystemCreated>
                    <ns7:firstName>amy</ns7:firstName>
                    <ns7:contactPoints>
                        <ns8:contactPoint id="1008">
                            <ns8:type>
                                <ns8:value>email</ns8:value>
                                <ns8:displayValue>Email</ns8:displayValue>
                                <ns8:email>
                                    <ns8:emailAddress>amy@example.com</ns8:emailAddress>
                                </ns8:email>
                            </ns8:type>
                        </ns8:contactPoint>
                    </ns7:contactPoints>
                </ns7:contactPerson>
            </ns6:contactPersons>
        </customer>
        <queue id="1000">
            <ns3:name>Chat queue</ns3:name>
        </queue>
        <attachments>
            <ns12:count>0</ns12:count>
            <ns12:purgedCount>0</ns12:purgedCount>
            <ns12:link rel="attachment" href="/system/ws/v12/interaction/activity/1018/attachment"/>
        </attachments>
        <notes>
            <count>0</count>
            <Link rel="note" href="/system/ws/v12/interaction/activity/1018/note"/>
        </notes>
		<isContentPurged>false</isContentPurged>
    </activity>
</activities>

     


JSON

Request

Method URL
GET /ws/v12/interaction/activity/1011,1014,1018?$attribute=created

Request headers

Name Value
X-egain-session Valid session ID
Accept application/json
Accept-Language en-US

Response
HTTP/1.1 200 OK

Response headers

Name Value
X-egain-session current session ID
Content-Type application/json

Response body

{
    "activity": [
        {
            "link": {
                "rel": "self",
                "href": "/system/ws/v12/interaction/activity/1011"
            },
            "case": {
                "link": {
                    "rel": "case",
                    "href": "/system/ws/v12/interaction/case/1001"
                },
                "id": 1001
            },
            "department": {
                "name": "Call Department",
                "id": 1001
            },
            "mode": {
                "value": "inbound",
                "displayValue": "Inbound"
            },
            "type": {
                "value": "email",
                "displayValue": "Email",
                "subtype": {
                    "value": "general",
                    "displayValue": "General"
                }
            },
            "isSecure": false,
            "sentOnBehalf": false,
            "status": {
                "value": "assigned",
                "displayValue": "Assigned",
                "substatus": {
                    "value": "in_progress",
                    "displayValue": "In Progress"
                },
                "assigned": {
                    "user": {
                        "name": "JennyAnthony",
                        "firstName": "Jenny",
                        "lastName": "Anthony",
                        "id": 1002
                    },
                    "activityFolder": {
                        "name": {
                            "value": "activities_current",
                            "displayValue": "Current"
                        },
                        "id": 6
                    },
                    "isPinned": false,
                    "isLocked": false
                }
            },
            "priority": "2",
            "created": {
                "user": {
                    "name": "system",
                    "firstName": "System",
                    "lastName": "Services",
                    "id": 12
                },
                "date": "2016-03-29T18:18:10.000Z"
            },
            "lastModified": {
                "user": {
                    "name": "JennyAnthony",
                    "firstName": "Jenny",
                    "lastName": "Anthony",
                    "id": 1002
                },
                "date": "2016-03-29T18:40:32.000Z"
            },
            "dueDate": "2016-04-06T07:00:00.000Z",
            "subject": "Issue with laptop configuration",
            "customer": {
                "link": {
                    "rel": "customer",
                    "href": "/system/ws/v12/interaction/customer/1002"
                },
                "customerName": "John Davis",
                "contactPersons": {
                    "contactPerson": [
                        {
                            "isSystemCreated": false,
                            "firstName": "John",
                            "lastName": "Davis",
                            "contactPoints": {
                                "contactPoint": [
                                    {
                                        "type": {
                                            "value": "email",
                                            "displayValue": "Email",
                                            "email": {
                                                "emailAddress": "johndavis@example.com"
                                            }
                                        },
                                        "id": 1004
                                    }
                                ]
                            },
                            "id": 1002
                        }
                    ]
                },
                "id": 1002
            },
            "queue": {
                "name": "Email queue",
                "id": 1001
            },
            "attachments": {
                "count": 0,
                "purgedCount": 0,
                "link": {
                    "rel": "attachment",
                    "href": "/system/ws/v12/interaction/activity/1011/attachment"
                }
            },
            "notes": {
                "count": 1,
                "Link": {
                   "rel": "note",
                   "href": "/system/ws/v12/interaction/activity/1011/note"
                }
            },
			"isContentPurged": false,
            "id": 1011
        },
        {
            "link": {
                "rel": "self",
                "href": "/system/ws/v12/interaction/activity/1014"
            },
            "case": {
                "link": {
                    "rel": "case",
                    "href": "/system/ws/v12/interaction/case/1002"
                },
                "id": 1002
            },
            "department": {
                "name": "Service",
                "id": 999
            },
            "mode": {
                "value": "none",
                "displayValue": "None"
            },
            "type": {
                "value": "web_activity",
                "displayValue": "Web Activity",
                "subtype": {
                    "value": "general",
                    "displayValue": "General"
                }
            },
            "isSecure": false,
            "sentOnBehalf": false,
            "status": {
                "value": "completed",
                "displayValue": "Completed",
                "substatus": {
                    "value": "done",
                    "displayValue": "Done"
                },
                "assigned": {
                    "activityFolder": {
                        "name": {
                            "value": "activities_completed",
                            "displayValue": "Completed"
                        },
                        "id": 7
                    },
                    "isPinned": false,
                    "isLocked": true
                }
            },
            "created": {
                "user": {
                    "name": "sscustomer",
                    "firstName": "SS Customer",
                    "lastName": "SS Customer",
                    "id": 17
                },
                "date": "2016-04-01T20:59:30.000Z"
            },
            "lastModified": {
                "date": "2016-04-01T21:21:58.000Z"
            },
            "subject": " ",
            "customer": {
                "link": {
                    "rel": "customer",
                    "href": "/system/ws/v12/interaction/customer/1002"
                },
                "customerName": "John Davis",
                "contactPersons": {
                    "contactPerson": [
                        {
                            "isSystemCreated": false,
                            "firstName": "John",
                            "lastName": "Davis",
                            "id": 1002
                        }
                    ]
                },
                "id": 1002
            },
            "attachments": {
                "count": 0,
                "purgedCount": 0,
                "link": {
                    "rel": "attachment",
                    "href": "/system/ws/v12/interaction/activity/1014/attachment"
                }
            },
            "notes": {
                "count": 0,
                "Link": {
                   "rel": "note",
                   "href": "/system/ws/v12/interaction/activity/1014/note"
                }
            },
			"isContentPurged": false,
            "id": 1014
        },
        {
            "link": {
                "rel": "self",
                "href": "/system/ws/v12/interaction/activity/1018"
            },
            "case": {
                "link": {
                    "rel": "case",
                    "href": "/system/ws/v12/interaction/case/1004"
                },
                "id": 1004
            },
            "department": {
                "name": "Service",
                "id": 999
            },
            "mode": {
                "value": "inbound",
                "displayValue": "Inbound"
            },
            "type": {
                "value": "chat",
                "displayValue": "Chat",
                "subtype": {
                    "value": "general",
                    "displayValue": "General"
                }
            },
            "isSecure": false,
            "sentOnBehalf": false,
            "status": {
                "value": "completed",
                "displayValue": "Completed",
                "substatus": {
                    "value": "done",
                    "displayValue": "Done"
                },
                "assigned": {
                    "user": {
                        "name": "JennyAnthony",
                        "firstName": "Jenny",
                        "lastName": "Anthony",
                        "id": 1002
                    },
                    "activityFolder": {
                        "name": {
                            "value": "activities_completed",
                            "displayValue": "Completed"
                        },
                        "id": 7
                    },
                    "isPinned": false,
                    "isLocked": false
                }
            },
            "created": {
                "user": {
                    "name": "system",
                    "firstName": "System",
                    "lastName": "Services",
                    "id": 12
                },
                "date": "2016-04-01T21:43:57.000Z"
            },
            "lastModified": {
                "user": {
                    "name": "JennyAnthony",
                    "firstName": "Jenny",
                    "lastName": "Anthony",
                    "id": 1002
                },
                "date": "2016-04-01T22:00:44.000Z"
            },
            "subject": "hi",
            "customer": {
                "link": {
                    "rel": "customer",
                    "href": "/system/ws/v12/interaction/customer/1003"
                },
                "customerName": "amy  ",
                "contactPersons": {
                    "contactPerson": [
                        {
                            "isSystemCreated": false,
                            "firstName": "amy",
                            "contactPoints": {
                                "contactPoint": [
                                    {
                                        "type": {
                                            "value": "email",
                                            "displayValue": "Email",
                                            "email": {
                                                "emailAddress": "amy@example.com"
                                            }
                                        },
                                        "id": 1008
                                    }
                                ]
                            },
                            "id": 1003
                        }
                    ]
                },
                "id": 1003
            },
            "queue": {
                "name": "Chat queue",
                "id": 1000
            },
            "attachments": {
                "count": 0,
                "purgedCount": 0,
                "link": {
                    "rel": "attachment",
                    "href": "/system/ws/v12/interaction/activity/1018/attachment"
                }
            },
            "notes": {
                "count": 0,
                "Link": {
                   "rel": "note",
                   "href": "/system/ws/v12/interaction/activity/1018/note"
                }
            },
			"isContentPurged": false,
            "id": 1018
        }
    ]
}

     


Example 7 - Get an additional custom attribute for a single activity

This example demonstrates the following:

  • Getting summary attributes and a custom attribute for a single activity. The custom attribute in this example is "custom.complainttype".
  • Representation of the custom attribute in the response.

XML

Request

Method URL
GET /ws/v12/interaction/activity/1011?$attribute=custom.complainttype

Request headers

Name Value
X-egain-session Valid session ID
Accept application/xml
Accept-Language en-US

Response
HTTP/1.1 200 OK

Response headers

Name Value
X-egain-session current session ID
Content-Type application/xml

Response body

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<activities xmlns="http://bindings.egain.com/ws/model/v12/gen/interaction/activity"
xmlns:ns2="http://bindings.egain.com/ws/model/v12/gen/interaction/case"
xmlns:ns3="http://bindings.egain.com/ws/model/v12/gen/platform"
xmlns:ns4="http://bindings.egain.com/ws/model/v12/gen/common"
xmlns:ns5="http://bindings.egain.com/ws/model/v12/gen/interaction/folder"
xmlns:ns6="http://bindings.egain.com/ws/model/v12/gen/interaction/customer"
xmlns:ns7="http://bindings.egain.com/ws/model/v12/gen/interaction/contactperson"
xmlns:ns8="http://bindings.egain.com/ws/model/v12/gen/interaction/contactpoint"
xmlns:ns9="http://bindings.egain.com/ws/model/v12/gen/kb"
xmlns:ns10="http://bindings.egain.com/ws/model/v15/gen/kb/edition"
xmlns:ns11="http://bindings.egain.com/ws/model/v15/gen/kb/profile"
xmlns:ns12="http://bindings.egain.com/ws/model/v12/gen/interaction/attachment"
xmlns:ns13="http://bindings.egain.com/ws/model/v12/gen/mail/alias"
xmlns:ns14="http://bindings.egain.com/ws/model/v12/gen/live/entrypoint">
    <activity id="1011">
        <link rel="self" href="/system/ws/v12/interaction/activity/1011"/>
        <case id="1001">
            <ns2:link rel="case" href="/system/ws/v12/interaction/case/1001"/>
        </case>
        <department id="999">
            <ns3:name>Service</ns3:name>
        </department>
        <mode>
            <ns4:value>inbound</ns4:value>
            <ns4:displayValue>Inbound</ns4:displayValue>
        </mode>
        <type>
            <value>email</value>
            <displayValue>Email</displayValue>
            <subtype>
                <ns4:value>general</ns4:value>
                <ns4:displayValue>General</ns4:displayValue>
            </subtype>
        </type>
        <isSecure>false</isSecure>
        <sentOnBehalf>false</sentOnBehalf>
        <status>
            <value>assigned</value>
            <displayValue>Assigned</displayValue>
            <substatus>
                <ns4:value>in_progress</ns4:value>
                <ns4:displayValue>In Progress</ns4:displayValue>
            </substatus>
            <assigned>
                <user id="1002">
                    <ns3:name>JennyAnthony</ns3:name>
                    <ns3:firstName>Jenny</ns3:firstName>
                    <ns3:lastName>Anthony</ns3:lastName>
                </user>
                <activityFolder id="6">
                    <ns5:name>
                        <ns4:value>activities_current</ns4:value>
                        <ns4:displayValue>Current</ns4:displayValue>
                    </ns5:name>
                </activityFolder>
                <isPinned>false</isPinned>
                <isLocked>false</isLocked>
            </assigned>
        </status>
        <priority>2</priority>
        <lastModified date="2016-03-29T18:40:32.000Z">
            <ns4:user id="1002">
                <ns3:name>JennyAnthony</ns3:name>
                <ns3:firstName>Jenny</ns3:firstName>
                <ns3:lastName>Anthony</ns3:lastName>
            </ns4:user>
        </lastModified>
        <dueDate>2016-04-06T07:00:00.000Z</dueDate>
        <subject>Issue with laptop configuration</subject>
        <customer id="1002">
            <ns6:link rel="customer" href="/system/ws/v12/interaction/customer/1002"/>
            <ns6:customerName>John Davis</ns6:customerName>
            <ns6:contactPersons>
                <ns7:contactPerson id="1002">
                    <ns7:isSystemCreated>false</ns7:isSystemCreated>
                    <ns7:firstName>John</ns7:firstName>
                    <ns7:lastName>Davis</ns7:lastName>
                    <ns7:contactPoints>
                        <ns8:contactPoint id="1004">
                            <ns8:type>
                                <ns8:value>email</ns8:value>
                                <ns8:displayValue>Email</ns8:displayValue>
                                <ns8:email>
                                    <ns8:emailAddress>johndavis@example.com</ns8:emailAddress>
                                </ns8:email>
                            </ns8:type>
                        </ns8:contactPoint>
                    </ns7:contactPoints>
                </ns7:contactPerson>
            </ns6:contactPersons>
        </customer>
        <queue id="1001">
            <ns3:name>Email queue</ns3:name>
        </queue>
        <attachments>
            <ns12:count>0</ns12:count>
            <ns12:purgedCount>0</ns12:purgedCount>
            <ns12:link rel="attachment" href="/system/ws/v12/interaction/activity/1011/attachment"/>
        </attachments>
        <notes>
            <count>1</count>
            <Link rel="note" href="/system/ws/v12/interaction/activity/1011/note"/>
        </notes>
		<isContentPurged>false</isContentPurged>
        <customAttributes>
            <ns4:customAttribute>
                <ns4:attribName>complainttype</ns4:attribName>
                <ns4:attribValues>
                    <ns4:attribValue>
                        <ns4:value>incorrect_order</ns4:value>
                        <ns4:displayValue>Incorrect Order</ns4:displayValue>
                    </ns4:attribValue>
                </ns4:attribValues>
            </ns4:customAttribute>
        </customAttributes>
    </activity>
</activities>

     


JSON

Request

Method URL
GET /ws/v12/interaction/activity/1011?$attribute=custom.complainttype

Request headers

Name Value
X-egain-session Valid session ID
Accept application/json
Accept-Language en-US

Response
HTTP/1.1 200 OK

Response headers

Name Value
X-egain-session current session ID
Content-Type application/json

Response body

{
    "activity": [
        {
            "link": {
                "rel": "self",
                "href": "/system/ws/v12/interaction/activity/1011"
            },
            "case": {
                "link": {
                    "rel": "case",
                    "href": "/system/ws/v12/interaction/case/1001"
                },
                "id": 1001
            },
            "department": {
                "name": "Service",
                "id": 999
            },
            "mode": {
                "value": "inbound",
                "displayValue": "Inbound"
            },
            "type": {
                "value": "email",
                "displayValue": "Email",
                "subtype": {
                    "value": "general",
                    "displayValue": "General"
                }
            },
            "isSecure": false,
            "sentOnBehalf": false,
            "status": {
                "value": "assigned",
                "displayValue": "Assigned",
                "substatus": {
                    "value": "in_progress",
                    "displayValue": "In Progress"
                },
                "assigned": {
                    "user": {
                        "name": "JennyAnthony",
                        "firstName": "Jenny",
                        "lastName": "Anthony",
                        "id": 1002
                    },
                    "activityFolder": {
                        "name": {
                            "value": "activities_current",
                            "displayValue": "Current"
                        },
                        "id": 6
                    },
                    "isPinned": false,
                    "isLocked": false
                }
            },
            "priority": "2",
            "lastModified": {
                "user": {
                    "name": "JennyAnthony",
                    "firstName": "Jenny",
                    "lastName": "Anthony",
                    "id": 1002
                },
                "date": "2016-03-29T18:40:32.000Z"
            },
            "dueDate": "2016-04-06T07:00:00.000Z",
            "subject": "Issue with laptop configuration",
            "customer": {
                "link": {
                    "rel": "customer",
                    "href": "/system/ws/v12/interaction/customer/1002"
                },
                "customerName": "John Davis",
                "contactPersons": {
                    "contactPerson": [
                        {
                            "isSystemCreated": false,
                            "firstName": "John",
                            "lastName": "Davis",
                            "contactPoints": {
                                "contactPoint": [
                                    {
                                        "type": {
                                            "value": "email",
                                            "displayValue": "Email",
                                            "email": {
                                                "emailAddress": "johndavis@example.com"
                                            }
                                        },
                                        "id": 1004
                                    }
                                ]
                            },
                            "id": 1002
                        }
                    ]
                },
                "id": 1002
            },
            "queue": {
                "name": "Email queue",
                "id": 1001
            },
            "attachments": {
                "count": 0,
                "purgedCount": 0,
                "link": {
                    "rel": "attachment",
                    "href": "/system/ws/v12/interaction/activity/1011/attachment"
                }
            },
            "notes": {
                "count": 1,
                "Link": {
                   "rel": "note",
                   "href": "/system/ws/v12/interaction/activity/1011/note"
                }
            },
			"isContentPurged": false,
            "customAttributes": {
                "customAttribute": [
                    {
                        "attribName": "complainttype",
                        "attribValues": {
                            "attribValue": [
                                {
                                    "value": "incorrect_order",
                                    "displayValue": "Incorrect Order"
                                }
                            ]
                        }
                    }
                ]
            },
            "id": 1011
        }
    ]
}

     


Example 8 - Get summary attributes and payload for activities of all types

This example demonstrates the following:

  • Getting summary attributes and payload for multiple activities. Even though payload attribute is explicitly requested, contents node for each activity is omitted because this is a multi-activity request.
  • Representation of summary attributes along with "payload" for all activities types - email, chat and calltrack.
  • Representation of an email activity when the activity is sent by a customer on behalf of another customer. This also shows the representation of "sentBy" in the email payload.
  • Representation of an activity without a customer. In this example, the "task" activity is not associated with a customer, and hence, customer attribute is not present.
  • Default sorting (on activityId in ascending order)

XML

Request

Method URL
GET ws/v12/interaction/activity/1011,1017,1018,1019,1020,1021,1022?$attribute=payload

Request headers

Name Value
X-egain-session Valid session ID
Accept application/xml
Accept-Language en-US

Response
HTTP/1.1 200 OK

Response headers

Name Value
X-egain-session current session ID
Content-Type application/xml

Response body

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<activities xmlns="http://bindings.egain.com/ws/model/v12/gen/interaction/activity"
xmlns:ns2="http://bindings.egain.com/ws/model/v12/gen/interaction/case"
xmlns:ns3="http://bindings.egain.com/ws/model/v12/gen/platform"
xmlns:ns4="http://bindings.egain.com/ws/model/v12/gen/common"
xmlns:ns5="http://bindings.egain.com/ws/model/v12/gen/interaction/folder"
xmlns:ns6="http://bindings.egain.com/ws/model/v12/gen/interaction/customer"
xmlns:ns7="http://bindings.egain.com/ws/model/v12/gen/interaction/contactperson"
xmlns:ns8="http://bindings.egain.com/ws/model/v12/gen/interaction/contactpoint"
xmlns:ns9="http://bindings.egain.com/ws/model/v12/gen/kb"
xmlns:ns10="http://bindings.egain.com/ws/model/v15/gen/kb/edition"
xmlns:ns11="http://bindings.egain.com/ws/model/v15/gen/kb/profile"
xmlns:ns12="http://bindings.egain.com/ws/model/v12/gen/interaction/attachment"
xmlns:ns13="http://bindings.egain.com/ws/model/v12/gen/mail/alias"
xmlns:ns14="http://bindings.egain.com/ws/model/v12/gen/live/entrypoint">
    <activity id="1011">
        <link rel="self" href="/system/ws/v12/interaction/activity/1011"/>
        <case id="1002">
            <ns2:link rel="case" href="/system/ws/v12/interaction/case/1002"/>
        </case>
        <department id="999">
            <ns3:name>Service</ns3:name>
        </department>
        <mode>
            <ns4:value>inbound</ns4:value>
            <ns4:displayValue>Inbound</ns4:displayValue>
        </mode>
        <type>
            <value>email</value>
            <displayValue>Email</displayValue>
            <subtype>
                <ns4:value>general</ns4:value>
                <ns4:displayValue>General</ns4:displayValue>
            </subtype>
        </type>
        <isSecure>true</isSecure>
        <sentOnBehalf>true</sentOnBehalf>
        <status>
            <value>assigned</value>
            <displayValue>Assigned</displayValue>
            <substatus>
                <ns4:value>in_progress</ns4:value>
                <ns4:displayValue>In Progress</ns4:displayValue>
            </substatus>
            <assigned>
                <user id="1002">
                    <ns3:name>JennyAnthony</ns3:name>
                    <ns3:firstName>Jenny</ns3:firstName>
                    <ns3:lastName>Anthony</ns3:lastName>
                </user>
                <activityFolder id="6">
                    <ns5:name>
                        <ns4:value>activities_current</ns4:value>
                        <ns4:displayValue>Current</ns4:displayValue>
                    </ns5:name>
                </activityFolder>
                <isPinned>false</isPinned>
                <isLocked>false</isLocked>
            </assigned>
        </status>
        <priority>2</priority>
        <lastModified date="2016-04-08T23:41:41.000Z">
            <ns4:user id="1002">
                <ns3:name>JennyAnthony</ns3:name>
                <ns3:firstName>Jenny</ns3:firstName>
                <ns3:lastName>Anthony</ns3:lastName>
            </ns4:user>
        </lastModified>
        <dueDate>2016-04-06T07:00:00.000Z</dueDate>
        <subject>Issue with laptop configuration</subject>
        <customer id="1002">
            <ns6:link rel="customer" href="/system/ws/v12/interaction/customer/1002"/>
            <ns6:customerName>John Davis</ns6:customerName>
            <ns6:contactPersons>
                <ns7:contactPerson id="1002">
                    <ns7:isSystemCreated>false</ns7:isSystemCreated>
                    <ns7:firstName>John</ns7:firstName>
                    <ns7:lastName>Davis</ns7:lastName>
                    <ns7:contactPoints>
                        <ns8:contactPoint id="1004">
                            <ns8:type>
                                <ns8:value>email</ns8:value>
                                <ns8:displayValue>Email</ns8:displayValue>
                                <ns8:email>
                                    <ns8:emailAddress>johndavis@example.com</ns8:emailAddress>
                                </ns8:email>
                            </ns8:type>
                        </ns8:contactPoint>
                    </ns7:contactPoints>
                </ns7:contactPerson>
            </ns6:contactPersons>
        </customer>
        <queue id="1001">
            <ns3:name>Email queue</ns3:name>
        </queue>
        <attachments>
            <ns12:count>0</ns12:count>
            <ns12:purgedCount>0</ns12:purgedCount>
            <ns12:link rel="attachment" href="/system/ws/v12/interaction/activity/1011/attachment"/>
        </attachments>
        <notes>
            <count>1</count>
            <Link rel="note" href="/system/ws/v12/interaction/activity/1011/note"/>
        </notes>
		<isContentPurged>false</isContentPurged>
        <payload>
            <email>
                <hasDraft>false</hasDraft>
                <leaveOpen>false</leaveOpen>
                <isEscalated>false</isEscalated>
                <isOutboundFailed>false</isOutboundFailed>
                <alias id="1000">
                    <ns10:name>alias</ns10:name>
                    <ns10:value>support@business.com</ns10:value>
                </alias>
                <date date="2016-03-29T18:18:10.000Z"/>
                <sentBy>
                    <customer id="1017">
                        <ns6:link rel="customer" href="/system/ws/v12/interaction/customer/1017"/>
                        <ns6:customerName>Steven Taylor</ns6:customerName>
                        <ns6:contactPersons>
                            <ns7:contactPerson id="1017">
                                <ns7:firstName>Steven</ns7:firstName>
                                <ns7:lastName>Taylor</ns7:lastName>
                            </ns7:contactPerson>
                        </ns6:contactPersons>
                    </customer>
                </sentBy>
                <emailAddresses>
                    <from>johndavis@example.com</from>
                    <to>
                        <address>johndavis@example.com</address>
                    </to>
                    <replyTo>
                        <address>support@business.com</address>
                    </replyTo>
                    <receiver>support@business.com</receiver>
                </emailAddresses>
            </email>
        </payload>
    </activity>
    <activity id="1017">
        <link rel="self" href="/system/ws/v12/interaction/activity/1017"/>
        <case id="1003">
            <ns2:link rel="case" href="/system/ws/v12/interaction/case/1003"/>
        </case>
        <department id="999">
            <ns3:name>Service</ns3:name>
        </department>
        <mode>
            <ns4:value>inbound</ns4:value>
            <ns4:displayValue>Inbound</ns4:displayValue>
        </mode>
        <type>
            <value>chat</value>
            <displayValue>Chat</displayValue>
            <subtype>
                <ns4:value>general</ns4:value>
                <ns4:displayValue>General</ns4:displayValue>
            </subtype>
        </type>
        <isSecure>false</isSecure>
        <sentOnBehalf>false</sentOnBehalf>
        <status>
            <value>completed</value>
            <displayValue>Completed</displayValue>
            <substatus>
                <ns4:value>done</ns4:value>
                <ns4:displayValue>Done</ns4:displayValue>
            </substatus>
            <assigned>
                <user id="1002">
                    <ns3:name>JennyAnthony</ns3:name>
                    <ns3:firstName>Jenny</ns3:firstName>
                    <ns3:lastName>Anthony</ns3:lastName>
                </user>
                <activityFolder id="7">
                    <ns5:name>
                        <ns4:value>activities_completed</ns4:value>
                        <ns4:displayValue>Completed</ns4:displayValue>
                    </ns5:name>
                </activityFolder>
                <isPinned>false</isPinned>
                <isLocked>false</isLocked>
            </assigned>
        </status>
        <lastModified date="2016-04-01T21:43:13.000Z">
            <ns4:user id="1002">
                <ns3:name>JennyAnthony</ns3:name>
                <ns3:firstName>Jenny</ns3:firstName>
                <ns3:lastName>Anthony</ns3:lastName>
            </ns4:user>
        </lastModified>
        <subject>I am looking for a new laptop.</subject>
        <customer id="1003">
            <ns6:link rel="customer" href="/system/ws/v12/interaction/customer/1003"/>
            <ns6:customerName>amy</ns6:customerName>
            <ns6:contactPersons>
                <ns7:contactPerson id="1003">
                    <ns7:isSystemCreated>false</ns7:isSystemCreated>
                    <ns7:firstName>amy</ns7:firstName>
                    <ns7:contactPoints>
                        <ns8:contactPoint id="1008">
                            <ns8:type>
                                <ns8:value>email</ns8:value>
                                <ns8:displayValue>Email</ns8:displayValue>
                                <ns8:email>
                                    <ns8:emailAddress>amy@example.com</ns8:emailAddress>
                                </ns8:email>
                            </ns8:type>
                        </ns8:contactPoint>
                    </ns7:contactPoints>
                </ns7:contactPerson>
            </ns6:contactPersons>
        </customer>
        <queue id="1000">
            <ns3:name>Chat queue</ns3:name>
        </queue>
        <attachments>
            <ns12:count>0</ns12:count>
            <ns12:purgedCount>0</ns12:purgedCount>
            <ns12:link rel="attachment" href="/system/ws/v12/interaction/activity/1017/attachment"/>
        </attachments>
        <notes>
            <count>0</count>
            <Link rel="note" href="/system/ws/v12/interaction/activity/1017/note"/>
        </notes>
		<isContentPurged>false</isContentPurged>
        <payload>
            <chat>
                <isConference>
                    <value>false</value>
                </isConference>
                <entryPoint id="1000">
                    <ns14:name>Default Entry Point</ns14:name>
                </entryPoint>
                <closedBy id="1002">
                    <ns3:name>JennyAnthony</ns3:name>
                    <ns3:firstName>Jenny</ns3:firstName>
                    <ns3:lastName>Anthony</ns3:lastName>
                </closedBy>
                <clientInfo>
                    <clientIp>10.10.16.15</clientIp>
                    <userAgent>Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko</userAgent>
                    <referrerUrl>http://10.10.24.42/system/templates/chat/sunburst/chat.html?entryPointId=1000&amp;templateName=sunburst&amp;languageCode=en&amp;countryCode=US&amp;ver=v11</referrerUrl>
                </clientInfo>
                <custDisplayName>amy</custDisplayName>
                <origDepartment id="999">
                    <ns3:name>Service</ns3:name>
                </origDepartment>
            </chat>
        </payload>
    </activity>
</activities>

     


JSON

Request

Method URL
GET ws/v12/interaction/activity/1011,1017,1018,1019,1020,1021,1022?$attribute=payload

Request headers

Name Value
X-egain-session Valid session ID
Accept application/json
Accept-Language en-US

Response
HTTP/1.1 200 OK

Response headers

Name Value
X-egain-session current session ID
Content-Type application/json

Response body

{
    "activity": [
        {
            "link": {
                "rel": "self",
                "href": "/system/ws/v12/interaction/activity/1011"
            },
            "case": {
                "link": {
                    "rel": "case",
                    "href": "/system/ws/v12/interaction/case/1002"
                },
                "id": 1002
            },
            "department": {
                "name": "Service",
                "id": 999
            },
            "mode": {
                "value": "inbound",
                "displayValue": "Inbound"
            },
            "type": {
                "value": "email",
                "displayValue": "Email",
                "subtype": {
                    "value": "general",
                    "displayValue": "General"
                }
            },
            "isSecure": true,
            "sentOnBehalf": true,
            "status": {
                "value": "assigned",
                "displayValue": "Assigned",
                "substatus": {
                    "value": "in_progress",
                    "displayValue": "In Progress"
                },
                "assigned": {
                    "user": {
                        "name": "JennyAnthony",
                        "firstName": "Jenny",
                        "lastName": "Anthony",
                        "id": 1002
                    },
                    "activityFolder": {
                        "name": {
                            "value": "activities_current",
                            "displayValue": "Current"
                        },
                        "id": 6
                    },
                    "isPinned": false,
                    "isLocked": false
                }
            },
            "priority": "2",
            "lastModified": {
                "user": {
                    "name": "JennyAnthony",
                    "firstName": "Jenny",
                    "lastName": "Anthony",
                    "id": 1002
                },
                "date": "2016-04-08T23:41:41.000Z"
            },
            "dueDate": "2016-04-06T07:00:00.000Z",
            "subject": "Issue with laptop configuration",
            "customer": {
                "link": {
                    "rel": "customer",
                    "href": "/system/ws/v12/interaction/customer/1002"
                },
                "customerName": "John Davis",
                "contactPersons": {
                    "contactPerson": [
                        {
                            "isSystemCreated": false,
                            "firstName": "John",
                            "lastName": "Davis",
                            "contactPoints": {
                                "contactPoint": [
                                    {
                                        "type": {
                                            "value": "email",
                                            "displayValue": "Email",
                                            "email": {
                                                "emailAddress": "johndavis@example.com"
                                            }
                                        },
                                        "id": 1004
                                    }
                                ]
                            },
                            "id": 1002
                        }
                    ]
                },
                "id": 1002
            },
            "queue": {
                "name": "Email queue",
                "id": 1001
            },
            "attachments": {
                "count": 0,
                "purgedCount": 0,
                "link": {
                    "rel": "attachment",
                    "href": "/system/ws/v12/interaction/activity/1011/attachment"
                }
            },
            "notes": {
                "count": 1,
                "Link": {
                   "rel": "note",
                   "href": "/system/ws/v12/interaction/activity/1011/note"
                }
            },
			"isContentPurged": false,
            "payload": {
                "email": {
                    "hasDraft": false,
                    "leaveOpen": false,
                    "isEscalated": false,
                    "isOutboundFailed": false,
                    "alias": {
                        "name": "alias",
                        "value": "support@business.com",
                        "id": 1000
                    },
                    "date": {
                        "date": "2016-03-29T18:18:10.000Z"
                    },
                    "sentBy": {
                        "customer": {
                            "link": {
                                "rel": "customer",
                                "href": "/system/ws/v12/interaction/customer/1017"
                            },
                            "customerName": "Steven Taylor",
                            "contactPersons": {
                                "contactPerson": [
                                    {
                                        "firstName": "Steven",
                                        "lastName": "Taylor",
                                        "id": 1017
                                    }
                                ]
                            },
                            "id": 1017
                        }
                    },
                    "emailAddresses": {
                        "from": "johndavis@example.com",
                        "to": {
                            "address": [
                                "johndavis@example.com"
                            ]
                        },
                        "replyTo": {
                            "address": [
                                "support@business.com"
                            ]
                        },
                        "receiver": "support@business.com"
                    }
                }
            },
            "id": 1011
        },
        {
            "link": {
                "rel": "self",
                "href": "/system/ws/v12/interaction/activity/1017"
            },
            "case": {
                "link": {
                    "rel": "case",
                    "href": "/system/ws/v12/interaction/case/1003"
                },
                "id": 1003
            },
            "department": {
                "name": "Service",
                "id": 999
            },
            "mode": {
                "value": "inbound",
                "displayValue": "Inbound"
            },
            "type": {
                "value": "chat",
                "displayValue": "Chat",
                "subtype": {
                    "value": "general",
                    "displayValue": "General"
                }
            },
            "isSecure": false,
            "sentOnBehalf": false,
            "status": {
                "value": "completed",
                "displayValue": "Completed",
                "substatus": {
                    "value": "done",
                    "displayValue": "Done"
                },
                "assigned": {
                    "user": {
                        "name": "JennyAnthony",
                        "firstName": "Jenny",
                        "lastName": "Anthony",
                        "id": 1002
                    },
                    "activityFolder": {
                        "name": {
                            "value": "activities_completed",
                            "displayValue": "Completed"
                        },
                        "id": 7
                    },
                    "isPinned": false,
                    "isLocked": false
                }
            },
            "lastModified": {
                "user": {
                    "name": "JennyAnthony",
                    "firstName": "Jenny",
                    "lastName": "Anthony",
                    "id": 1002
                },
                "date": "2016-04-01T21:43:13.000Z"
            },
            "subject": "I am looking for a new laptop.",
            "customer": {
                "link": {
                    "rel": "customer",
                    "href": "/system/ws/v12/interaction/customer/1003"
                },
                "customerName": "amy  ",
                "contactPersons": {
                    "contactPerson": [
                        {
                            "isSystemCreated": false,
                            "firstName": "amy",
                            "contactPoints": {
                                "contactPoint": [
                                    {
                                        "type": {
                                            "value": "email",
                                            "displayValue": "Email",
                                            "email": {
                                                "emailAddress": "amy@example.com"
                                            }
                                        },
                                        "id": 1008
                                    }
                                ]
                            },
                            "id": 1003
                        }
                    ]
                },
                "id": 1003
            },
            "queue": {
                "name": "Chat queue",
                "id": 1000
            },
            "attachments": {
                "count": 0,
                "purgedCount": 0,
                "link": {
                    "rel": "attachment",
                    "href": "/system/ws/v12/interaction/activity/1017/attachment"
                }
            },
            "notes": {
                "count": 0,
                "Link": {
                   "rel": "note",
                   "href": "/system/ws/v12/interaction/activity/1017/note"
                }
            },
			"isContentPurged": false,			
            "payload": {
                "chat": {
                    "isConference": {
                        "value": false
                    },
                    "entryPoint": {
                        "name": "Default Entry Point",
                        "id": 1000
                    },
                    "closedBy": {
                        "name": "JennyAnthony",
                        "firstName": "Jenny",
                        "lastName": "Anthony",
                        "id": 1002
                    },
                    "clientInfo": {
                        "clientIp": "10.10.16.15",
                        "userAgent": "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko",
                        "referrerUrl": "http://10.10.24.42/system/templates/chat/sunburst/chat.html?entryPointId=1000&templateName=sunburst&languageCode=en&countryCode=US&ver=v11"
                    },
                    "custDisplayName": "amy",
                    "origDepartment": {
                        "name": "Service",
                        "id": 999
                    }
                }
            },
            "id": 1017
        }
    ]
}

     


Example 9 - Get internal version of a chat activity transcript

This example demonstrates the following:

  • Getting internal version of a chat activity transcript. Note that payload.chat.transcript is returned in this case as only a single activity is requested and value of 'attribute' is passed as 'payload'.

    Note: Transcript content without query parameter "payloadVersion" is provided towards the end of the example, for reference.

XML

Request

Method URL
GET /ws/v12/interaction/activity/1094?payloadVersion=internal&$attribute=payload

Request headers

Name Value
X-egain-session Valid session ID
Accept application/xml
Accept-Language en-US

Response
HTTP/1.1 200 OK

Response headers

Name Value
X-egain-session current session ID
Content-Type application/xml

Response body

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<activities xmlns="http://bindings.egain.com/ws/model/v12/gen/interaction/activity"
    xmlns:ns2="http://bindings.egain.com/ws/model/v12/gen/interaction/case"
    xmlns:ns3="http://bindings.egain.com/ws/model/v12/gen/platform"
    xmlns:ns4="http://bindings.egain.com/ws/model/v12/gen/common"
    xmlns:ns5="http://bindings.egain.com/ws/model/v12/gen/interaction/folder"
    xmlns:ns6="http://bindings.egain.com/ws/model/v12/gen/interaction/customer"
    xmlns:ns7="http://bindings.egain.com/ws/model/v12/gen/interaction/contactperson"
    xmlns:ns8="http://bindings.egain.com/ws/model/v12/gen/interaction/contactpoint"
    xmlns:ns9="http://bindings.egain.com/ws/model/v12/gen/kb"
    xmlns:ns10="http://bindings.egain.com/ws/model/v15/gen/kb/edition"
    xmlns:ns11="http://bindings.egain.com/ws/model/v15/gen/kb/profile"
    xmlns:ns12="http://bindings.egain.com/ws/model/v12/gen/interaction/attachment"
    xmlns:ns13="http://bindings.egain.com/ws/model/v12/gen/mail/alias"
    xmlns:ns14="http://bindings.egain.com/ws/model/v12/gen/live/entrypoint">
    <activity id="1094">
        <link rel="self" href="/system/ws/v12/interaction/activity/1094"/>
        <case id="1066">
            <ns2:link rel="case" href="/system/ws/v12/interaction/case/1066"/>
        </case>
        <department id="999">
            <ns3:name>Service</ns3:name>
        </department>
        <mode>
            <ns4:value>inbound</ns4:value>
            <ns4:displayValue>Inbound</ns4:displayValue>
        </mode>
        <type>
            <value>chat</value>
            <displayValue>Chat</displayValue>
            <subtype>
                <ns4:value>general</ns4:value>
                <ns4:displayValue>General</ns4:displayValue>
            </subtype>
        </type>
        <isSecure>false</isSecure>
        <sentOnBehalf>false</sentOnBehalf>
        <status>
            <value>completed</value>
            <displayValue>Completed</displayValue>
            <substatus>
                <ns4:value>done</ns4:value>
                <ns4:displayValue>Done</ns4:displayValue>
            </substatus>
            <assigned>
                <user id="1002">
                    <ns3:name>Jenny Anthony</ns3:name>
                    <ns3:firstName>Jenny</ns3:firstName>
                    <ns3:lastName>Anthony</ns3:lastName>
                </user>
                <activityFolder id="7">
                    <ns5:name>
                        <ns4:value>activities_completed</ns4:value>
                        <ns4:displayValue>Completed</ns4:displayValue>
                    </ns5:name>
                </activityFolder>
                <isPinned>false</isPinned>
                <isLocked>false</isLocked>
            </assigned>
        </status>
        <lastModified date="2017-10-02T11:21:20.000Z"/>
        <subject>I am looking for a new laptop.</subject>
        <customer id="1003">
            <ns6:link rel="customer" href="/system/ws/v12/interaction/customer/1003"/>
            <ns6:customerName>amy</ns6:customerName>
            <ns6:contactPersons>
                <ns7:contactPerson id="1003">
                    <ns7:isSystemCreated>false</ns7:isSystemCreated>
                    <ns7:firstName>amy</ns7:firstName>
                    <ns7:contactPoints>
                        <ns8:contactPoint id="1008">
                            <ns8:type>
                                <ns8:value>email</ns8:value>
                                <ns8:displayValue>Email</ns8:displayValue>
                                <ns8:email>
                                    <ns8:emailAddress>amy@example.com</ns8:emailAddress>
                                </ns8:email>
                            </ns8:type>
                        </ns8:contactPoint>
                    </ns7:contactPoints>
                </ns7:contactPerson>
            </ns6:contactPersons>
        </customer>
        <queue id="1000">
            <ns3:name>Chat queue</ns3:name>
        </queue>
        <attachments>
            <ns12:count>1</ns12:count>
            <ns12:purgedCount>0</ns12:purgedCount>
            <ns12:link rel="attachment" href="/system/ws/v12/interaction/activity/1094/attachment"/>
        </attachments>
        <notes>
            <count>0</count>
            <Link rel="note" href="/system/ws/v12/interaction/activity/1094/note"/>
        </notes>
		<isContentPurged>false</isContentPurged>
        <payload>
            <chat>
                <isConference>
                    <value>true</value>
                    <users>
                        <ns3:user id="1002">
                            <ns3:name>Jenny Anthony</ns3:name>
                            <ns3:firstName>Jenny</ns3:firstName>
                            <ns3:lastName>Anthony</ns3:lastName>
                        </ns3:user>
                        <ns3:user id="1022">
                            <ns3:name>Frank Robert</ns3:name>
                            <ns3:firstName>Frank</ns3:firstName>
                            <ns3:lastName>Robert</ns3:lastName>
                        </ns3:user>
                    </users>
                </isConference>
                <entryPoint id="1000">
                    <ns14:name>Default Entry Point</ns14:name>
                </entryPoint>
                <closedBy id="1002">
                    <ns3:name>Jenny Anthony</ns3:name>
                    <ns3:firstName>Jenny</ns3:firstName>
                    <ns3:lastName>Anthony</ns3:lastName>
                </closedBy>
                <clientInfo>
                    <clientIp>10.10.74.52:52332</clientIp>
                    <userAgent>Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko</userAgent>
                    <referrerUrl>http%3A%2F%2Fsloconv14test.egeng.info%2Fsloconv14test.htm%23</referrerUrl>
                </clientInfo>
                <custDisplayName>amy</custDisplayName>
                <origDepartment id="999">
                    <ns3:name>Service</ns3:name>
                </origDepartment>
                <visitorInfo/>
                <transcript>
                    <content>
                        <ns4:type>text</ns4:type>
                        <ns4:value>
                            &lt;B&gt;CHAT STARTED AT&lt;/B&gt; 11:18 AM (2 Oct 2017)&#xD;
                            &#xD;
                            amy 11:18 AM : 11:18 AM GMT : Escalated : Started Chat&#xD;
                            11:18 AM GMT : Shown : Suggested articles&#xD;
                            11:18 AM GMT : Read article : Dell Inspiron 13&#xD;
                            11:18 AM GMT : Escalated : Escalated to Agent&#xD;
                            &#xD;
                            amy 11:18 AM : I am looking for a new laptop. &#xD;
                            system 11:18 AM : You are now chatting with JennyAnthony &#xD;
                            JennyAnthony 11:19 AM : Please visit our retail outlet for a better experience. &#xD;
                            system 11:19 AM : FrankRobert has joined in whisper mode &#xD;
                            FrankRobert (To JennyAnthony) 11:19 AM : Is customer happy? &#xD;
                            JennyAnthony (To FrankRobert) 11:20 AM : I am not sure. &#xD;
                            system 11:20 AM : FrankRobert has joined the chat &#xD;
                            FrankRobert 11:20 AM : Please refer this attachment &#xD;
                            FrankRobert 11:20 AM : FrankRobert sent an attachment AllNewLaptops.txt &#xD;
                            amy 11:20 AM : amy accepted attachment AllNewLaptops.txt &#xD;
                            system 11:21 AM : JennyAnthony has ended the chat &#xD;
                            &#xD;
                            &lt;B&gt;CHAT ENDED AT&lt;/B&gt; 11:21 AM (2 Oct 2017)
                        </ns4:value>
                    </content>
                    <content>
                        <ns4:type>html</ns4:type>
                        <ns4:value>&lt;html&gt;&lt;head&gt;    &lt;meta name = "viewport" content = "initial-scale = 572px"&gt;    &lt;meta content="text/html; charset=UTF-8" http-equiv="Content-Type"&gt;    &lt;title&gt;Live Chat by ECE Transcript&lt;/title&gt;&lt;/head&gt;&lt;body&gt;    &lt;table cellpadding="0" cellspacing="0" class="transcript" style="table-layout:fixed;border:none;width: 572px;font-family: arial,helvetica,sans-serif;font-size: 12px;background-color: #ffffff;padding: 0 0 0 0;"&gt;    &lt;tr class="header" style="height:128px;background-color : #000000;padding:0px 0px 0px 0px"&gt;                        &lt;td style="width: 502px; padding-left:30px;"&gt;                &lt;div style="padding:59px 0px 16px 0px;"&gt;                    &lt;font style="display:inline;font-size:42px;color:#ffffff;font-family:arial,helvetica,sans-serif;"&gt;                    &lt;font face="arial, helvetica, sans-serif" style="font-size:42px;color:#ffffff"&gt;Live Chat&lt;/font&gt;&lt;/font&gt;                    &lt;font style="display:inline;font-size:23px;color:#ffffff;font-family:arial,helvetica,sans-serif;font-variant:small-caps;"&gt;                    &lt;font face="arial, helvetica, sans-serif" style="font-size:23px;color:#ffffff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;transcript&lt;/font&gt;&lt;/font&gt;                &lt;/div&gt;            &lt;/td&gt;                    &lt;/tr&gt;        &lt;tr class="chatStartTime" style="height:46px;background-color : #444444;padding:0px 0px 0px 0px;"&gt;            &lt;td style="padding-left:30px; width:502px;"&gt;                &lt;div style="padding:20px 0px 14px 0px;"&gt;                    &lt;font style="font-family:arial,helvetica,sans-serif;font-size:12px;color:#ffffff"&gt;                    &lt;font face="arial, helvetica, sans-serif" style="font-size:12px;color:#ffffff"&gt;&lt;strong&gt;&lt;B&gt;CHAT STARTED AT&lt;/B&gt; 11:18 AM (2 Oct 2017)&lt;/strong&gt;&lt;/font&gt;&lt;/font&gt;                &lt;/div&gt;            &lt;/td&gt;        &lt;/tr&gt;    &lt;/table&gt;      &lt;table cellpadding="0" cellspacing="0" class="transcript" style="table-layout:fixed;border:none;width: 570px;font-family: arial,helvetica,sans-serif;font-size: 12px;background-color: #ffffff;padding: 0 0 0 0;"&gt;                         &lt;tr style= "height:46px;background-color : #FFF; padding:0px 0px 0px 0px;"&gt;            &lt;td style="width: 31px; "&gt;&lt;/td&gt;            &lt;td style="width: 3px;"&gt;&lt;/td&gt;            &lt;td style="width:502px;"&gt;                &lt;div style="padding:20px 0px 14px 0px;"&gt;                                &lt;/div&gt;            &lt;/td&gt;            &lt;td style="width: 3px; background-color:#FFF;"&gt;&lt;/td&gt;            &lt;td style="width: 31px;"&gt;&lt;/td&gt;        &lt;/tr&gt;                     &lt;tr class="customer" style="word-wrap:break-word;color:#000000;font-family:arial,helvetica,sans-serif;padding:0px 0px 0px 0px"&gt;                       &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font face="arial, helvetica, sans-serif" style="color:#000000"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #bae7f5;width: 3px;"&gt;&lt;font style="background-color:#bae7f5"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="padding-left:15px;text-align:left"&gt;                &lt;font&gt;&lt;/font&gt;                &lt;div&gt;                    &lt;font&gt;&lt;font style="text-align:left;display:inline;font-size:14px;color:#000000;font-family:arial,helvetica,sans-serif;font-weight:bold;padding: 0px 0px 0px 0px;"&gt;                    &lt;font face="arial, helvetica, sans-serif" style="font-weight:bold;font-size:14px;color:#000000"&gt;AMY&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;                    &lt;hr style="margin-bottom:9px;margin-top:3px;border:1px solid #ededed;"&gt;                    &lt;table style="width=480px;table-layout:fixed;"&gt;                        &lt;tr&gt;                            &lt;td style="text-align:left;width:300px;"&gt;                            &lt;font&gt;&lt;font style="display:inline;font-size:13px;color:#444444;font-family:arial,helvetica,sans-serif;padding-bottom:5px;padding-right:0px"&gt;                            &lt;font face="arial, helvetica, sans-serif" style="font-size:13px;color:#444444"&gt;&lt;span style="float:left;text-align:left;width:300px;"&gt;&lt;font&gt;11:18 AM GMT : Escalated : Started Chat&lt;br&gt;11:18 AM GMT : Shown : Suggested articles&lt;br&gt;11:18 AM GMT : Read article : Dell Inspiron 13&lt;br&gt;11:18 AM GMT : Escalated : Escalated to Agent&lt;br&gt;&lt;font style="font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap;"&gt;                            &lt;font face="arial, helvetica, sans-serif" style="font-weight:normal;font-size:10px;color:#444444"&gt;11:18 AM&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/td&gt;                            &lt;td style="width:180px;background-color : #ffffff;"&gt;                            &lt;font style="background-color:#ffffff"&gt;&lt;br&gt;&lt;/font&gt;&lt;/td&gt;                        &lt;/tr&gt;                    &lt;/table&gt;                &lt;/div&gt;            &lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 3px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;         &lt;tr class="paddingBetweenMsgs"&gt;            &lt;td colspan="5" style="height:20px;color:#ffffff;"&gt;&lt;font style="color:#ffffff"&gt;&lt;br&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;                       &lt;tr class="customer" style="word-wrap:break-word;color:#000000;font-family:arial,helvetica,sans-serif;padding:0px 0px 0px 0px"&gt;                       &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font face="arial, helvetica, sans-serif" style="color:#000000"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #bae7f5;width: 3px;"&gt;&lt;font style="background-color:#bae7f5"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="padding-left:15px;text-align:left"&gt;                &lt;font&gt;&lt;/font&gt;                &lt;div&gt;                    &lt;font&gt;&lt;font style="text-align:left;display:inline;font-size:14px;color:#000000;font-family:arial,helvetica,sans-serif;font-weight:bold;padding: 0px 0px 0px 0px;"&gt;                    &lt;font face="arial, helvetica, sans-serif" style="font-weight:bold;font-size:14px;color:#000000"&gt;AMY&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;                    &lt;hr style="margin-bottom:9px;margin-top:3px;border:1px solid #ededed;"&gt;                    &lt;table style="width=480px;table-layout:fixed;"&gt;                        &lt;tr&gt;                            &lt;td style="text-align:left;width:300px;"&gt;                            &lt;font&gt;&lt;font style="display:inline;font-size:13px;color:#444444;font-family:arial,helvetica,sans-serif;padding-bottom:5px;padding-right:0px"&gt;                            &lt;font face="arial, helvetica, sans-serif" style="font-size:13px;color:#444444"&gt;&lt;span style="float:left;text-align:left;width:300px;"&gt;&lt;font&gt;I am looking for a new laptop.&lt;font style="font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap;"&gt;                            &lt;font face="arial, helvetica, sans-serif" style="font-weight:normal;font-size:10px;color:#444444"&gt;11:18 AM&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/td&gt;                            &lt;td style="width:180px;background-color : #ffffff;"&gt;                            &lt;font style="background-color:#ffffff"&gt;&lt;br&gt;&lt;/font&gt;&lt;/td&gt;                        &lt;/tr&gt;                    &lt;/table&gt;                &lt;/div&gt;            &lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 3px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;          &lt;tr class="paddingBetweenMsgs"&gt;            &lt;td colspan="5" style="height:20px;color:#ffffff;"&gt;&lt;font style="color:#ffffff"&gt;&lt;br&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;                               &lt;tr class="system" style="word-wrap:break-word;"&gt;            &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 3px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="width: 498px;padding-left:0px;"&gt;                &lt;div style="display:inline;font-size:16px;color:#a2a2a2;font-family:arial,helvetica,sans-serif;"&gt;                &lt;font face="arial, helvetica, sans-serif" style="font-size:16px;color:#a2a2a2"&gt;You are now chatting with JennyAnthony&lt;font style="font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap"&gt;                            &lt;font face="arial, helvetica, sans-serif" style="font-weight:normal;font-size:10px;color:#444444"&gt;11:18 AM&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;                &lt;/div&gt;            &lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 3px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;                     &lt;tr class="paddingBetweenMsgs"&gt;            &lt;td colspan="5" style="height:20px;color:#ffffff;"&gt;&lt;font style="color:#ffffff"&gt;&lt;br&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;                                       &lt;tr class="agent1" style="word-wrap:break-word;color:#000000;font-family:arial,helvetica,sans-serif;padding:0px 0px 0px 0px"&gt;        &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font face="arial, helvetica, sans-serif" style="color:#000000"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 3px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="padding-right:15px;text-align:right"&gt;                &lt;font&gt;&lt;/font&gt;                &lt;div&gt;                    &lt;font&gt;&lt;font style="text-align:right;display:inline;font-weight:bold;font-size:14px;color:#000000;font-family:arial,helvetica,sans-serif;padding: 0px 0px 0px 0px;"&gt;                    &lt;font face="arial, helvetica, sans-serif" style="font-weight:bold;font-size:14px;color:#000000"&gt;JENNYANTHONY&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;                    &lt;hr style="margin-bottom:9px;margin-top:3px;border:1px solid #ededed;"&gt;                    &lt;table style="width=480px;table-layout:fixed;"&gt;                        &lt;tr&gt;                            &lt;td style="width:180px;background-color : #ffffff;"&gt;                            &lt;font style="background-color:#ffffff"&gt;&lt;br&gt;&lt;/font&gt;&lt;/td&gt;                            &lt;td style="text-align:left;width:300px;"&gt;                            &lt;font&gt;&lt;font style="display:inline;font-size:13px;color:#444444;font-family:arial,helvetica,sans-serif;padding-bottom:5px;padding-right:0px"&gt;                            &lt;font face="arial, helvetica, sans-serif" style="font-size:13px;color:#444444"&gt;&lt;span style="float:right;text-align:left;width:300px;"&gt;&lt;font&gt;Please visit our retail outlet for a better experience.&lt;font style="font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap"&gt;                            &lt;font face="arial, helvetica, sans-serif" style="font-weight:normal;font-size:10px;color:#444444"&gt;11:19 AM&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/td&gt;                        &lt;/tr&gt;                    &lt;/table&gt;                &lt;/div&gt;            &lt;/td&gt;            &lt;td style="background-color : #ededed;width: 3px;"&gt;&lt;font style="background-color:#ededed"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;                              &lt;tr class="paddingBetweenMsgs"&gt;            &lt;td colspan="5" style="height:20px;color:#ffffff;"&gt;&lt;font style="color:#ffffff"&gt;&lt;br&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;                               &lt;tr class="system" style="word-wrap:break-word;"&gt;            &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 3px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="width: 498px;padding-left:0px;"&gt;                &lt;div style="display:inline;font-size:16px;color:#a2a2a2;font-family:arial,helvetica,sans-serif;"&gt;                &lt;font face="arial, helvetica, sans-serif" style="font-size:16px;color:#a2a2a2"&gt;FrankRobert has joined in whisper mode&lt;font style="font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap"&gt;                            &lt;font face="arial, helvetica, sans-serif" style="font-weight:normal;font-size:10px;color:#444444"&gt;11:19 AM&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;                &lt;/div&gt;            &lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 3px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;                     &lt;tr class="paddingBetweenMsgs"&gt;            &lt;td colspan="5" style="height:20px;color:#ffffff;"&gt;&lt;font style="color:#ffffff"&gt;&lt;br&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;                                               &lt;tr class="agent2" style="word-wrap:break-word;color:#000000;font-family:arial,helvetica,sans-serif;padding:0px 0px 0px 0px"&gt;        &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font face="arial, helvetica, sans-serif" style="color:#000000"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 3px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="padding-right:15px;text-align:right"&gt;                &lt;font&gt;&lt;/font&gt;                &lt;div&gt;                    &lt;font&gt;&lt;font style="text-align:right;display:inline;font-weight:bold;font-size:14px;color:#000000;font-family:arial,helvetica,sans-serif;padding: 0px 0px 0px 0px;"&gt;                    &lt;font face="arial, helvetica, sans-serif" style="font-weight:bold;font-size:14px;color:#000000"&gt;FRANKROBERT (TO JENNYANTHONY)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;                    &lt;hr style="margin-bottom:9px;margin-top:3px;border:1px solid #ededed;"&gt;                    &lt;table style="width=480px;table-layout:fixed;"&gt;                        &lt;tr&gt;                            &lt;td style="width:180px;background-color : #ffffff;"&gt;                            &lt;font style="background-color:#ffffff"&gt;&lt;br&gt;&lt;/font&gt;&lt;/td&gt;                            &lt;td style="text-align:left;width:300px;"&gt;                            &lt;font&gt;&lt;font style="display:inline;font-size:13px;color:#444444;font-family:arial,helvetica,sans-serif;padding-bottom:5px;padding-right:0px"&gt;                            &lt;font face="arial, helvetica, sans-serif" style="font-size:13px;color:#444444"&gt;&lt;span style="float:right;text-align:left;width:300px;"&gt;&lt;font&gt;Is customer happy?&lt;font style="font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap"&gt;                            &lt;font face="arial, helvetica, sans-serif" style="font-weight:normal;font-size:10px;color:#444444"&gt;11:19 AM&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/td&gt;                        &lt;/tr&gt;                    &lt;/table&gt;                &lt;/div&gt;            &lt;/td&gt;            &lt;td style="background-color : #bababa;width: 3px;"&gt;&lt;font style="background-color:#bababa"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;                                      &lt;tr class="paddingBetweenMsgs"&gt;            &lt;td colspan="5" style="height:20px;color:#ffffff;"&gt;&lt;font style="color:#ffffff"&gt;&lt;br&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;                                       &lt;tr class="agent1" style="word-wrap:break-word;color:#000000;font-family:arial,helvetica,sans-serif;padding:0px 0px 0px 0px"&gt;        &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font face="arial, helvetica, sans-serif" style="color:#000000"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 3px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="padding-right:15px;text-align:right"&gt;                &lt;font&gt;&lt;/font&gt;                &lt;div&gt;                    &lt;font&gt;&lt;font style="text-align:right;display:inline;font-weight:bold;font-size:14px;color:#000000;font-family:arial,helvetica,sans-serif;padding: 0px 0px 0px 0px;"&gt;                    &lt;font face="arial, helvetica, sans-serif" style="font-weight:bold;font-size:14px;color:#000000"&gt;JENNYANTHONY (TO FRANKROBERT)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;                    &lt;hr style="margin-bottom:9px;margin-top:3px;border:1px solid #ededed;"&gt;                    &lt;table style="width=480px;table-layout:fixed;"&gt;                        &lt;tr&gt;                            &lt;td style="width:180px;background-color : #ffffff;"&gt;                            &lt;font style="background-color:#ffffff"&gt;&lt;br&gt;&lt;/font&gt;&lt;/td&gt;                            &lt;td style="text-align:left;width:300px;"&gt;                            &lt;font&gt;&lt;font style="display:inline;font-size:13px;color:#444444;font-family:arial,helvetica,sans-serif;padding-bottom:5px;padding-right:0px"&gt;                            &lt;font face="arial, helvetica, sans-serif" style="font-size:13px;color:#444444"&gt;&lt;span style="float:right;text-align:left;width:300px;"&gt;&lt;font&gt;I am not sure.&lt;font style="font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap"&gt;                            &lt;font face="arial, helvetica, sans-serif" style="font-weight:normal;font-size:10px;color:#444444"&gt;11:20 AM&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/td&gt;                        &lt;/tr&gt;                    &lt;/table&gt;                &lt;/div&gt;            &lt;/td&gt;            &lt;td style="background-color : #ededed;width: 3px;"&gt;&lt;font style="background-color:#ededed"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;                              &lt;tr class="paddingBetweenMsgs"&gt;            &lt;td colspan="5" style="height:20px;color:#ffffff;"&gt;&lt;font style="color:#ffffff"&gt;&lt;br&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;                               &lt;tr class="system" style="word-wrap:break-word;"&gt;            &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 3px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="width: 498px;padding-left:0px;"&gt;                &lt;div style="display:inline;font-size:16px;color:#a2a2a2;font-family:arial,helvetica,sans-serif;"&gt;                &lt;font face="arial, helvetica, sans-serif" style="font-size:16px;color:#a2a2a2"&gt;FrankRobert has joined the chat&lt;font style="font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap"&gt;                            &lt;font face="arial, helvetica, sans-serif" style="font-weight:normal;font-size:10px;color:#444444"&gt;11:20 AM&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;                &lt;/div&gt;            &lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 3px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;                        &lt;tr class="paddingBetweenMsgs"&gt;            &lt;td colspan="5" style="height:20px;color:#ffffff;"&gt;&lt;font style="color:#ffffff"&gt;&lt;br&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;                                               &lt;tr class="agent2" style="word-wrap:break-word;color:#000000;font-family:arial,helvetica,sans-serif;padding:0px 0px 0px 0px"&gt;        &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font face="arial, helvetica, sans-serif" style="color:#000000"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 3px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="padding-right:15px;text-align:right"&gt;                &lt;font&gt;&lt;/font&gt;                &lt;div&gt;                    &lt;font&gt;&lt;font style="text-align:right;display:inline;font-weight:bold;font-size:14px;color:#000000;font-family:arial,helvetica,sans-serif;padding: 0px 0px 0px 0px;"&gt;                    &lt;font face="arial, helvetica, sans-serif" style="font-weight:bold;font-size:14px;color:#000000"&gt;FRANKROBERT&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;                    &lt;hr style="margin-bottom:9px;margin-top:3px;border:1px solid #ededed;"&gt;                    &lt;table style="width=480px;table-layout:fixed;"&gt;                        &lt;tr&gt;                            &lt;td style="width:180px;background-color : #ffffff;"&gt;                            &lt;font style="background-color:#ffffff"&gt;&lt;br&gt;&lt;/font&gt;&lt;/td&gt;                            &lt;td style="text-align:left;width:300px;"&gt;                            &lt;font&gt;&lt;font style="display:inline;font-size:13px;color:#444444;font-family:arial,helvetica,sans-serif;padding-bottom:5px;padding-right:0px"&gt;                            &lt;font face="arial, helvetica, sans-serif" style="font-size:13px;color:#444444"&gt;&lt;span style="float:right;text-align:left;width:300px;"&gt;&lt;font&gt;Please refer this attachment&lt;font style="font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap"&gt;                            &lt;font face="arial, helvetica, sans-serif" style="font-weight:normal;font-size:10px;color:#444444"&gt;11:20 AM&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/td&gt;                        &lt;/tr&gt;                    &lt;/table&gt;                &lt;/div&gt;            &lt;/td&gt;            &lt;td style="background-color : #bababa;width: 3px;"&gt;&lt;font style="background-color:#bababa"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;                                      &lt;tr class="paddingBetweenMsgs"&gt;            &lt;td colspan="5" style="height:20px;color:#ffffff;"&gt;&lt;font style="color:#ffffff"&gt;&lt;br&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;                               &lt;tr class="system" style="word-wrap:break-word;"&gt;            &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 3px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="width: 498px;padding-left:0px;"&gt;                &lt;div style="display:inline;font-size:16px;color:#a2a2a2;font-family:arial,helvetica,sans-serif;"&gt;                &lt;font face="arial, helvetica, sans-serif" style="font-size:16px;color:#a2a2a2"&gt;FrankRobert sent an attachment AllNewLaptops.txt&lt;font style="font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap"&gt;                            &lt;font face="arial, helvetica, sans-serif" style="font-weight:normal;font-size:10px;color:#444444"&gt;11:20 AM&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;                &lt;/div&gt;            &lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 3px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;                       &lt;tr class="paddingBetweenMsgs"&gt;            &lt;td colspan="5" style="height:20px;color:#ffffff;"&gt;&lt;font style="color:#ffffff"&gt;&lt;br&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;                               &lt;tr class="system" style="word-wrap:break-word;"&gt;            &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 3px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="width: 498px;padding-left:0px;"&gt;                &lt;div style="display:inline;font-size:16px;color:#a2a2a2;font-family:arial,helvetica,sans-serif;"&gt;                &lt;font face="arial, helvetica, sans-serif" style="font-size:16px;color:#a2a2a2"&gt;amy accepted attachment AllNewLaptops.txt&lt;font style="font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap"&gt;                            &lt;font face="arial, helvetica, sans-serif" style="font-weight:normal;font-size:10px;color:#444444"&gt;11:20 AM&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;                &lt;/div&gt;            &lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 3px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;                      &lt;tr class="paddingBetweenMsgs"&gt;            &lt;td colspan="5" style="height:20px;color:#ffffff;"&gt;&lt;font style="color:#ffffff"&gt;&lt;br&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;                               &lt;tr class="system" style="word-wrap:break-word;"&gt;            &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 3px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="width: 498px;padding-left:0px;"&gt;                &lt;div style="display:inline;font-size:16px;color:#a2a2a2;font-family:arial,helvetica,sans-serif;"&gt;                &lt;font face="arial, helvetica, sans-serif" style="font-size:16px;color:#a2a2a2"&gt;JennyAnthony has ended the chat&lt;font style="font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap"&gt;                            &lt;font face="arial, helvetica, sans-serif" style="font-weight:normal;font-size:10px;color:#444444"&gt;11:21 AM&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;                &lt;/div&gt;            &lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 3px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="background-color : #ffffff;width: 31px;"&gt;&lt;font style="background-color:#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;                        &lt;tr class="paddingBetweenMsgs"&gt;            &lt;td colspan="5" style="height:20px;color:#ffffff;"&gt;&lt;font style="color:#ffffff"&gt;&lt;br&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;                       &lt;tr class='chatEndTime' style='height:46px;background-color : #444444;padding:0px 0px 0px 0px;'&gt;  &lt;td style='width: 31px;'&gt; &lt;/td&gt; &lt;td style='width: 3px;'&gt;  &lt;/td&gt; &lt;td style='width:502px;'&gt;     &lt;div style='padding:21px 0px 14px 0px;'&gt;          &lt;font style='font-family:arial,helvetica,sans-serif;font-size:12px;color:#ffffff'&gt;&lt;B&gt;CHAT ENDED AT&lt;/B&gt; 11:21 AM (2 Oct 2017)&lt;/font&gt;     &lt;/div&gt;    &lt;/td&gt; &lt;td style='width: 3px;'&gt;  &lt;/td&gt; &lt;td style='width: 31px;'&gt; &lt;/td&gt;&lt;/tr&gt;              &lt;tr class="footer" style="height:46px;background-color : #000000;padding:0px 0px 0px 0px"&gt;            &lt;td style="width:31px;"&gt;&lt;font style="background-color:#000000"&gt;&lt;/font&gt;&lt;/td&gt;            &lt;td style="width: 3px;"&gt;&lt;/td&gt;            &lt;td style="width: 502px;"&gt;                &lt;div style="padding:16px 0px 11px 0px;"&gt;                    &lt;font style="display:inline;font-size:14px;color:#818082;font-family:arial,helvetica,sans-serif;font-weight:bold;"&gt;                    &lt;font face="arial, helvetica, sans-serif" style="font-weight:bold;font-size:14px;color:#818082"&gt;Live Chat&lt;/font&gt;&lt;/font&gt; &lt;font style="display:inline;font-size:14px;color:#494949;font-family:arial,helvetica,sans-serif;font-weight:bold;"&gt;                    &lt;font face="arial, helvetica, sans-serif" style="font-weight:bold;font-size:14px;color:#494949"&gt;by ECE&lt;/font&gt;&lt;/font&gt;                &lt;/div&gt;            &lt;/td&gt;            &lt;td style="width: 3px;"&gt;&lt;/td&gt;            &lt;td style="background-color : #000000;width: 31px;"&gt;&lt;font style="background-color:#000000"&gt;&lt;/font&gt;&lt;/td&gt;        &lt;/tr&gt;        &lt;/table&gt;       &lt;meta content="noopen" name="DownloadOptions"&gt;&lt;/BODY&gt;&lt;/HTML&gt;</ns4:value>
                    </content>
                </transcript>
            </chat>
        </payload>
    </activity>
</activities>

     


JSON

Request

Method URL
GET /ws/v12/interaction/activity/1094?payloadVersion=internal&$attribute=payload

Request headers

Name Value
X-egain-session Valid session ID
Accept application/json
Accept-Language en-US

Response
HTTP/1.1 200 OK

Response headers

Name Value
X-egain-session current session ID
Content-Type application/json

Response body

{
    "activity": [
        {
            "link": {
                "rel": "self",
                "href": "/system/ws/v12/interaction/activity/1094"
            },
            "case": {
                "link": {
                    "rel": "case",
                    "href": "/system/ws/v12/interaction/case/1066"
                },
                "id": 1066
            },
            "department": {
                "name": "Service",
                "id": 999
            },
            "mode": {
                "value": "inbound",
                "displayValue": "Inbound"
            },
            "type": {
                "value": "chat",
                "displayValue": "Chat",
                "subtype": {
                    "value": "general",
                    "displayValue": "General"
                }
            },
            "isSecure": false,
            "sentOnBehalf": false,
            "status": {
                "value": "completed",
                "displayValue": "Completed",
                "substatus": {
                    "value": "done",
                    "displayValue": "Done"
                },
                "assigned": {
                    "user": {
                        "name": "Jenny Anthony",
                        "firstName": "Jenny",
                        "lastName": "Anthony",
                        "id": 1002
                    },
                    "activityFolder": {
                        "name": {
                            "value": "activities_completed",
                            "displayValue": "Completed"
                        },
                        "id": 7
                    },
                    "isPinned": false,
                    "isLocked": false
                }
            },
            "lastModified": {
                "date": "2017-10-02T11:21:20.000Z"
            },
            "subject": "I am looking for a new laptop.",
            "customer": {
                "link": {
                    "rel": "customer",
                    "href": "/system/ws/v12/interaction/customer/1003"
                },
                "customerName": "amy ",
                "contactPersons": {
                    "contactPerson": [
                        {
                            "isSystemCreated": false,
                            "firstName": "amy",
                            "contactPoints": {
                                "contactPoint": [
                                    {
                                        "type": {
                                            "value": "email",
                                            "displayValue": "Email",
                                            "email": {
                                                "emailAddress": "amy@example.com"
                                            }
                                        },
                                        "id": 1008
                                    }
                                ]
                            },
                            "id": 1003
                        }
                    ]
                },
                "id": 1003
            },
            "queue": {
                "name": "Chat queue",
                "id": 1000
            },
            "attachments": {
                "count": 1,
                "purgedCount": 0,
                "link": {
                    "rel": "attachment",
                    "href": "/system/ws/v12/interaction/activity/1094/attachment"
                }
            },
            "notes": {
                "count": 0,
                "Link": {
                   "rel": "note",
                   "href": "/system/ws/v12/interaction/activity/1094/note"
                }
            },
			"isContentPurged": false,
            "payload": {
                "chat": {
                    "isConference": {
                        "value": true,
                        "users": {
                            "user": [
                                {
                                    "name": "Jenny Anthony",
                                    "firstName": "Jenny",
                                    "lastName": "Anthony",
                                    "id": 1002
                                },
                                {
                                    "name": "Frank Robert",
                                    "firstName": "Frank",
                                    "lastName": "Robert",
                                    "id": 1022
                                }
                            ]
                        }
                    },
                    "entryPoint": {
                        "name": "Default Entry Point",
                        "id": 1000
                    },
                    "closedBy": {
                        "name": "Jenny Anthony",
                        "firstName": "Jenny",
                        "lastName": "Anthony",
                        "id": 1002
                    },
                    "clientInfo": {
                        "clientIp": "10.10.74.52:52332",
                        "userAgent": "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko",
                        "referrerUrl": "http%3A%2F%2Fsloconv14test.egeng.info%2Fsloconv14test.htm%23"
                    },
                    "custDisplayName": "amy",
                    "origDepartment": {
                        "name": "Service",
                        "id": 999
                    },
                    "visitorInfo": {
                    },
                    "transcript": {
                        "content": [
                            {
                                "type": "text",
                                "value": "<B>CHAT STARTED AT</B> 11:18 AM (2 Oct 2017)\r\n\r\namy 11:18 AM : 11:18 AM GMT : Escalated : Started Chat\r\n11:18 AM GMT : Shown : Suggested articles\r\n11:18 AM GMT : Read article : Dell Inspiron 13\r\n11:18 AM GMT : Escalated : Escalated to Agent\r\n \r\namy 11:18 AM : I am looking for a new laptop. \r\nsystem 11:18 AM : You are now chatting with JennyAnthony \r\nJennyAnthony 11:19 AM : Please visit our retail outlet for a better experience. \r\nsystem 11:19 AM : FrankRobert has joined in whisper mode \r\nFrankRobert (To JennyAnthony) 11:19 AM : Is customer happy? \r\nJennyAnthony (To FrankRobert) 11:20 AM : I am not sure. \r\nsystem 11:20 AM : FrankRobert has joined the chat \r\nFrankRobert 11:20 AM : Please refer this attachment \r\nFrankRobert 11:20 AM : FrankRobert sent an attachment AllNewLaptops.txt \r\namy 11:20 AM : amy accepted attachment AllNewLaptops.txt \r\nsystem 11:21 AM : JennyAnthony has ended the chat \r\n\r\n<B>CHAT ENDED AT</B> 11:21 AM (2 Oct 2017)"
                            },
                            {
                                "type": "html",
                                "value": "<html><head>    <meta name = \"viewport\" content = \"initial-scale = 572px\">    <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\">    <title>Live Chat by ECE Transcript</title></head><body>    <table cellpadding=\"0\" cellspacing=\"0\" class=\"transcript\" style=\"table-layout:fixed;border:none;width: 572px;font-family: arial,helvetica,sans-serif;font-size: 12px;background-color: #ffffff;padding: 0 0 0 0;\">    <tr class=\"header\" style=\"height:128px;background-color : #000000;padding:0px 0px 0px 0px\">                        <td style=\"width: 502px; padding-left:30px;\">                <div style=\"padding:59px 0px 16px 0px;\">                    <font style=\"display:inline;font-size:42px;color:#ffffff;font-family:arial,helvetica,sans-serif;\">                    <font face=\"arial, helvetica, sans-serif\" style=\"font-size:42px;color:#ffffff\">Live Chat</font></font>                    <font style=\"display:inline;font-size:23px;color:#ffffff;font-family:arial,helvetica,sans-serif;font-variant:small-caps;\">                    <font face=\"arial, helvetica, sans-serif\" style=\"font-size:23px;color:#ffffff\">&nbsp;&nbsp;&nbsp;transcript</font></font>                </div>            </td>                    </tr>        <tr class=\"chatStartTime\" style=\"height:46px;background-color : #444444;padding:0px 0px 0px 0px;\">            <td style=\"padding-left:30px; width:502px;\">                <div style=\"padding:20px 0px 14px 0px;\">                    <font style=\"font-family:arial,helvetica,sans-serif;font-size:12px;color:#ffffff\">                    <font face=\"arial, helvetica, sans-serif\" style=\"font-size:12px;color:#ffffff\"><strong><B>CHAT STARTED AT</B> 11:18 AM (2 Oct 2017)</strong></font></font>                </div>            </td>        </tr>\t</table>\t\t<table cellpadding=\"0\" cellspacing=\"0\" class=\"transcript\" style=\"table-layout:fixed;border:none;width: 570px;font-family: arial,helvetica,sans-serif;font-size: 12px;background-color: #ffffff;padding: 0 0 0 0;\">\t\t \t\t \t\t <tr style= \"height:46px;background-color : #FFF; padding:0px 0px 0px 0px;\">            <td style=\"width: 31px; \"></td>            <td style=\"width: 3px;\"></td>            <td style=\"width:502px;\">                <div style=\"padding:20px 0px 14px 0px;\">                                </div>            </td>            <td style=\"width: 3px; background-color:#FFF;\"></td>            <td style=\"width: 31px;\"></td>        </tr>\t\t\t\t\t\t<tr class=\"customer\" style=\"word-wrap:break-word;color:#000000;font-family:arial,helvetica,sans-serif;padding:0px 0px 0px 0px\">\t\t\t\t        <td style=\"background-color : #ffffff;width: 31px;\"><font face=\"arial, helvetica, sans-serif\" style=\"color:#000000\"><font style=\"background-color:#ffffff\"></font></font></td>            <td style=\"background-color : #bae7f5;width: 3px;\"><font style=\"background-color:#bae7f5\"></font></td>            <td style=\"padding-left:15px;text-align:left\">                <font></font>                <div>                    <font><font style=\"text-align:left;display:inline;font-size:14px;color:#000000;font-family:arial,helvetica,sans-serif;font-weight:bold;padding: 0px 0px 0px 0px;\">                    <font face=\"arial, helvetica, sans-serif\" style=\"font-weight:bold;font-size:14px;color:#000000\">AMY</font></font></font>                    <hr style=\"margin-bottom:9px;margin-top:3px;border:1px solid #ededed;\">                    <table style=\"width=480px;table-layout:fixed;\">                        <tr>                            <td style=\"text-align:left;width:300px;\">                            <font><font style=\"display:inline;font-size:13px;color:#444444;font-family:arial,helvetica,sans-serif;padding-bottom:5px;padding-right:0px\">                            <font face=\"arial, helvetica, sans-serif\" style=\"font-size:13px;color:#444444\"><span style=\"float:left;text-align:left;width:300px;\"><font>11:18 AM GMT : Escalated : Started Chat<br>11:18 AM GMT : Shown : Suggested articles<br>11:18 AM GMT : Read article : Dell Inspiron 13<br>11:18 AM GMT : Escalated : Escalated to Agent<br><font style=\"font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap;\">                            <font face=\"arial, helvetica, sans-serif\" style=\"font-weight:normal;font-size:10px;color:#444444\">11:18 AM</font></font></font></span></font></font></font></td>                            <td style=\"width:180px;background-color : #ffffff;\">                            <font style=\"background-color:#ffffff\"><br></font></td>                        </tr>                    </table>                </div>            </td>            <td style=\"background-color : #ffffff;width: 3px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"background-color : #ffffff;width: 31px;\"><font style=\"background-color:#ffffff\"></font></td>        </tr>\t\t\t<tr class=\"paddingBetweenMsgs\">            <td colspan=\"5\" style=\"height:20px;color:#ffffff;\"><font style=\"color:#ffffff\"><br></font></td>        </tr>\t\t\t\t\t\t<tr class=\"customer\" style=\"word-wrap:break-word;color:#000000;font-family:arial,helvetica,sans-serif;padding:0px 0px 0px 0px\">\t\t\t\t        <td style=\"background-color : #ffffff;width: 31px;\"><font face=\"arial, helvetica, sans-serif\" style=\"color:#000000\"><font style=\"background-color:#ffffff\"></font></font></td>            <td style=\"background-color : #bae7f5;width: 3px;\"><font style=\"background-color:#bae7f5\"></font></td>            <td style=\"padding-left:15px;text-align:left\">                <font></font>                <div>                    <font><font style=\"text-align:left;display:inline;font-size:14px;color:#000000;font-family:arial,helvetica,sans-serif;font-weight:bold;padding: 0px 0px 0px 0px;\">                    <font face=\"arial, helvetica, sans-serif\" style=\"font-weight:bold;font-size:14px;color:#000000\">AMY</font></font></font>                    <hr style=\"margin-bottom:9px;margin-top:3px;border:1px solid #ededed;\">                    <table style=\"width=480px;table-layout:fixed;\">                        <tr>                            <td style=\"text-align:left;width:300px;\">                            <font><font style=\"display:inline;font-size:13px;color:#444444;font-family:arial,helvetica,sans-serif;padding-bottom:5px;padding-right:0px\">                            <font face=\"arial, helvetica, sans-serif\" style=\"font-size:13px;color:#444444\"><span style=\"float:left;text-align:left;width:300px;\"><font>I am looking for a new laptop.<font style=\"font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap;\">                            <font face=\"arial, helvetica, sans-serif\" style=\"font-weight:normal;font-size:10px;color:#444444\">11:18 AM</font></font></font></span></font></font></font></td>                            <td style=\"width:180px;background-color : #ffffff;\">                            <font style=\"background-color:#ffffff\"><br></font></td>                        </tr>                    </table>                </div>            </td>            <td style=\"background-color : #ffffff;width: 3px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"background-color : #ffffff;width: 31px;\"><font style=\"background-color:#ffffff\"></font></td>        </tr>\t\t\t<tr class=\"paddingBetweenMsgs\">            <td colspan=\"5\" style=\"height:20px;color:#ffffff;\"><font style=\"color:#ffffff\"><br></font></td>        </tr>\t\t\t\t\t\t\t\t<tr class=\"system\" style=\"word-wrap:break-word;\">            <td style=\"background-color : #ffffff;width: 31px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"background-color : #ffffff;width: 3px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"width: 498px;padding-left:0px;\">                <div style=\"display:inline;font-size:16px;color:#a2a2a2;font-family:arial,helvetica,sans-serif;\">                <font face=\"arial, helvetica, sans-serif\" style=\"font-size:16px;color:#a2a2a2\">You are now chatting with JennyAnthony<font style=\"font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap\">                            <font face=\"arial, helvetica, sans-serif\" style=\"font-weight:normal;font-size:10px;color:#444444\">11:18 AM</font></font></font>                </div>            </td>            <td style=\"background-color : #ffffff;width: 3px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"background-color : #ffffff;width: 31px;\"><font style=\"background-color:#ffffff\"></font></td>        </tr>\t\t\t\t\t\t<tr class=\"paddingBetweenMsgs\">            <td colspan=\"5\" style=\"height:20px;color:#ffffff;\"><font style=\"color:#ffffff\"><br></font></td>        </tr>\t\t\t\t\t\t\t\t\t\t<tr class=\"agent1\" style=\"word-wrap:break-word;color:#000000;font-family:arial,helvetica,sans-serif;padding:0px 0px 0px 0px\">        <td style=\"background-color : #ffffff;width: 31px;\"><font face=\"arial, helvetica, sans-serif\" style=\"color:#000000\"><font style=\"background-color:#ffffff\"></font></font></td>            <td style=\"background-color : #ffffff;width: 3px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"padding-right:15px;text-align:right\">                <font></font>                <div>                    <font><font style=\"text-align:right;display:inline;font-weight:bold;font-size:14px;color:#000000;font-family:arial,helvetica,sans-serif;padding: 0px 0px 0px 0px;\">                    <font face=\"arial, helvetica, sans-serif\" style=\"font-weight:bold;font-size:14px;color:#000000\">JENNYANTHONY</font></font></font>                    <hr style=\"margin-bottom:9px;margin-top:3px;border:1px solid #ededed;\">                    <table style=\"width=480px;table-layout:fixed;\">                        <tr>                            <td style=\"width:180px;background-color : #ffffff;\">                            <font style=\"background-color:#ffffff\"><br></font></td>                            <td style=\"text-align:left;width:300px;\">                            <font><font style=\"display:inline;font-size:13px;color:#444444;font-family:arial,helvetica,sans-serif;padding-bottom:5px;padding-right:0px\">                            <font face=\"arial, helvetica, sans-serif\" style=\"font-size:13px;color:#444444\"><span style=\"float:right;text-align:left;width:300px;\"><font>Please visit our retail outlet for a better experience.<font style=\"font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap\">                            <font face=\"arial, helvetica, sans-serif\" style=\"font-weight:normal;font-size:10px;color:#444444\">11:19 AM</font></font></font></span></font></font></font></td>                        </tr>                    </table>                </div>            </td>            <td style=\"background-color : #ededed;width: 3px;\"><font style=\"background-color:#ededed\"></font></td>            <td style=\"background-color : #ffffff;width: 31px;\"><font style=\"background-color:#ffffff\"></font></td>        </tr>\t\t\t\t\t\t\t\t<tr class=\"paddingBetweenMsgs\">            <td colspan=\"5\" style=\"height:20px;color:#ffffff;\"><font style=\"color:#ffffff\"><br></font></td>        </tr>\t\t\t\t\t\t\t\t<tr class=\"system\" style=\"word-wrap:break-word;\">            <td style=\"background-color : #ffffff;width: 31px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"background-color : #ffffff;width: 3px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"width: 498px;padding-left:0px;\">                <div style=\"display:inline;font-size:16px;color:#a2a2a2;font-family:arial,helvetica,sans-serif;\">                <font face=\"arial, helvetica, sans-serif\" style=\"font-size:16px;color:#a2a2a2\">FrankRobert has joined in whisper mode<font style=\"font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap\">                            <font face=\"arial, helvetica, sans-serif\" style=\"font-weight:normal;font-size:10px;color:#444444\">11:19 AM</font></font></font>                </div>            </td>            <td style=\"background-color : #ffffff;width: 3px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"background-color : #ffffff;width: 31px;\"><font style=\"background-color:#ffffff\"></font></td>        </tr>\t\t\t\t\t\t<tr class=\"paddingBetweenMsgs\">            <td colspan=\"5\" style=\"height:20px;color:#ffffff;\"><font style=\"color:#ffffff\"><br></font></td>        </tr>\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"agent2\" style=\"word-wrap:break-word;color:#000000;font-family:arial,helvetica,sans-serif;padding:0px 0px 0px 0px\">        <td style=\"background-color : #ffffff;width: 31px;\"><font face=\"arial, helvetica, sans-serif\" style=\"color:#000000\"><font style=\"background-color:#ffffff\"></font></font></td>            <td style=\"background-color : #ffffff;width: 3px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"padding-right:15px;text-align:right\">                <font></font>                <div>                    <font><font style=\"text-align:right;display:inline;font-weight:bold;font-size:14px;color:#000000;font-family:arial,helvetica,sans-serif;padding: 0px 0px 0px 0px;\">                    <font face=\"arial, helvetica, sans-serif\" style=\"font-weight:bold;font-size:14px;color:#000000\">FRANKROBERT (TO JENNYANTHONY)</font></font></font>                    <hr style=\"margin-bottom:9px;margin-top:3px;border:1px solid #ededed;\">                    <table style=\"width=480px;table-layout:fixed;\">                        <tr>                            <td style=\"width:180px;background-color : #ffffff;\">                            <font style=\"background-color:#ffffff\"><br></font></td>                            <td style=\"text-align:left;width:300px;\">                            <font><font style=\"display:inline;font-size:13px;color:#444444;font-family:arial,helvetica,sans-serif;padding-bottom:5px;padding-right:0px\">                            <font face=\"arial, helvetica, sans-serif\" style=\"font-size:13px;color:#444444\"><span style=\"float:right;text-align:left;width:300px;\"><font>Is customer happy?<font style=\"font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap\">                            <font face=\"arial, helvetica, sans-serif\" style=\"font-weight:normal;font-size:10px;color:#444444\">11:19 AM</font></font></font></span></font></font></font></td>                        </tr>                    </table>                </div>            </td>            <td style=\"background-color : #bababa;width: 3px;\"><font style=\"background-color:#bababa\"></font></td>            <td style=\"background-color : #ffffff;width: 31px;\"><font style=\"background-color:#ffffff\"></font></td>        </tr>\t\t\t\t\t\t\t\t\t\t<tr class=\"paddingBetweenMsgs\">            <td colspan=\"5\" style=\"height:20px;color:#ffffff;\"><font style=\"color:#ffffff\"><br></font></td>        </tr>\t\t\t\t\t\t\t\t\t\t<tr class=\"agent1\" style=\"word-wrap:break-word;color:#000000;font-family:arial,helvetica,sans-serif;padding:0px 0px 0px 0px\">        <td style=\"background-color : #ffffff;width: 31px;\"><font face=\"arial, helvetica, sans-serif\" style=\"color:#000000\"><font style=\"background-color:#ffffff\"></font></font></td>            <td style=\"background-color : #ffffff;width: 3px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"padding-right:15px;text-align:right\">                <font></font>                <div>                    <font><font style=\"text-align:right;display:inline;font-weight:bold;font-size:14px;color:#000000;font-family:arial,helvetica,sans-serif;padding: 0px 0px 0px 0px;\">                    <font face=\"arial, helvetica, sans-serif\" style=\"font-weight:bold;font-size:14px;color:#000000\">JENNYANTHONY (TO FRANKROBERT)</font></font></font>                    <hr style=\"margin-bottom:9px;margin-top:3px;border:1px solid #ededed;\">                    <table style=\"width=480px;table-layout:fixed;\">                        <tr>                            <td style=\"width:180px;background-color : #ffffff;\">                            <font style=\"background-color:#ffffff\"><br></font></td>                            <td style=\"text-align:left;width:300px;\">                            <font><font style=\"display:inline;font-size:13px;color:#444444;font-family:arial,helvetica,sans-serif;padding-bottom:5px;padding-right:0px\">                            <font face=\"arial, helvetica, sans-serif\" style=\"font-size:13px;color:#444444\"><span style=\"float:right;text-align:left;width:300px;\"><font>I am not sure.<font style=\"font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap\">                            <font face=\"arial, helvetica, sans-serif\" style=\"font-weight:normal;font-size:10px;color:#444444\">11:20 AM</font></font></font></span></font></font></font></td>                        </tr>                    </table>                </div>            </td>            <td style=\"background-color : #ededed;width: 3px;\"><font style=\"background-color:#ededed\"></font></td>            <td style=\"background-color : #ffffff;width: 31px;\"><font style=\"background-color:#ffffff\"></font></td>        </tr>\t\t\t\t\t\t\t\t<tr class=\"paddingBetweenMsgs\">            <td colspan=\"5\" style=\"height:20px;color:#ffffff;\"><font style=\"color:#ffffff\"><br></font></td>        </tr>\t\t\t\t\t\t\t\t<tr class=\"system\" style=\"word-wrap:break-word;\">            <td style=\"background-color : #ffffff;width: 31px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"background-color : #ffffff;width: 3px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"width: 498px;padding-left:0px;\">                <div style=\"display:inline;font-size:16px;color:#a2a2a2;font-family:arial,helvetica,sans-serif;\">                <font face=\"arial, helvetica, sans-serif\" style=\"font-size:16px;color:#a2a2a2\">FrankRobert has joined the chat<font style=\"font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap\">                            <font face=\"arial, helvetica, sans-serif\" style=\"font-weight:normal;font-size:10px;color:#444444\">11:20 AM</font></font></font>                </div>            </td>            <td style=\"background-color : #ffffff;width: 3px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"background-color : #ffffff;width: 31px;\"><font style=\"background-color:#ffffff\"></font></td>        </tr>\t\t\t\t\t\t<tr class=\"paddingBetweenMsgs\">            <td colspan=\"5\" style=\"height:20px;color:#ffffff;\"><font style=\"color:#ffffff\"><br></font></td>        </tr>\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"agent2\" style=\"word-wrap:break-word;color:#000000;font-family:arial,helvetica,sans-serif;padding:0px 0px 0px 0px\">        <td style=\"background-color : #ffffff;width: 31px;\"><font face=\"arial, helvetica, sans-serif\" style=\"color:#000000\"><font style=\"background-color:#ffffff\"></font></font></td>            <td style=\"background-color : #ffffff;width: 3px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"padding-right:15px;text-align:right\">                <font></font>                <div>                    <font><font style=\"text-align:right;display:inline;font-weight:bold;font-size:14px;color:#000000;font-family:arial,helvetica,sans-serif;padding: 0px 0px 0px 0px;\">                    <font face=\"arial, helvetica, sans-serif\" style=\"font-weight:bold;font-size:14px;color:#000000\">FRANKROBERT</font></font></font>                    <hr style=\"margin-bottom:9px;margin-top:3px;border:1px solid #ededed;\">                    <table style=\"width=480px;table-layout:fixed;\">                        <tr>                            <td style=\"width:180px;background-color : #ffffff;\">                            <font style=\"background-color:#ffffff\"><br></font></td>                            <td style=\"text-align:left;width:300px;\">                            <font><font style=\"display:inline;font-size:13px;color:#444444;font-family:arial,helvetica,sans-serif;padding-bottom:5px;padding-right:0px\">                            <font face=\"arial, helvetica, sans-serif\" style=\"font-size:13px;color:#444444\"><span style=\"float:right;text-align:left;width:300px;\"><font>Please refer this attachment<font style=\"font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap\">                            <font face=\"arial, helvetica, sans-serif\" style=\"font-weight:normal;font-size:10px;color:#444444\">11:20 AM</font></font></font></span></font></font></font></td>                        </tr>                    </table>                </div>            </td>            <td style=\"background-color : #bababa;width: 3px;\"><font style=\"background-color:#bababa\"></font></td>            <td style=\"background-color : #ffffff;width: 31px;\"><font style=\"background-color:#ffffff\"></font></td>        </tr>\t\t\t\t\t\t\t\t\t\t<tr class=\"paddingBetweenMsgs\">            <td colspan=\"5\" style=\"height:20px;color:#ffffff;\"><font style=\"color:#ffffff\"><br></font></td>        </tr>\t\t\t\t\t\t\t\t<tr class=\"system\" style=\"word-wrap:break-word;\">            <td style=\"background-color : #ffffff;width: 31px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"background-color : #ffffff;width: 3px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"width: 498px;padding-left:0px;\">                <div style=\"display:inline;font-size:16px;color:#a2a2a2;font-family:arial,helvetica,sans-serif;\">                <font face=\"arial, helvetica, sans-serif\" style=\"font-size:16px;color:#a2a2a2\">FrankRobert sent an attachment AllNewLaptops.txt<font style=\"font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap\">                            <font face=\"arial, helvetica, sans-serif\" style=\"font-weight:normal;font-size:10px;color:#444444\">11:20 AM</font></font></font>                </div>            </td>            <td style=\"background-color : #ffffff;width: 3px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"background-color : #ffffff;width: 31px;\"><font style=\"background-color:#ffffff\"></font></td>        </tr>\t\t\t\t\t\t<tr class=\"paddingBetweenMsgs\">            <td colspan=\"5\" style=\"height:20px;color:#ffffff;\"><font style=\"color:#ffffff\"><br></font></td>        </tr>\t\t\t\t\t\t\t\t<tr class=\"system\" style=\"word-wrap:break-word;\">            <td style=\"background-color : #ffffff;width: 31px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"background-color : #ffffff;width: 3px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"width: 498px;padding-left:0px;\">                <div style=\"display:inline;font-size:16px;color:#a2a2a2;font-family:arial,helvetica,sans-serif;\">                <font face=\"arial, helvetica, sans-serif\" style=\"font-size:16px;color:#a2a2a2\">amy accepted attachment AllNewLaptops.txt<font style=\"font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap\">                            <font face=\"arial, helvetica, sans-serif\" style=\"font-weight:normal;font-size:10px;color:#444444\">11:20 AM</font></font></font>                </div>            </td>            <td style=\"background-color : #ffffff;width: 3px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"background-color : #ffffff;width: 31px;\"><font style=\"background-color:#ffffff\"></font></td>        </tr>\t\t\t\t\t\t<tr class=\"paddingBetweenMsgs\">            <td colspan=\"5\" style=\"height:20px;color:#ffffff;\"><font style=\"color:#ffffff\"><br></font></td>        </tr>\t\t\t\t\t\t\t\t<tr class=\"system\" style=\"word-wrap:break-word;\">            <td style=\"background-color : #ffffff;width: 31px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"background-color : #ffffff;width: 3px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"width: 498px;padding-left:0px;\">                <div style=\"display:inline;font-size:16px;color:#a2a2a2;font-family:arial,helvetica,sans-serif;\">                <font face=\"arial, helvetica, sans-serif\" style=\"font-size:16px;color:#a2a2a2\">JennyAnthony has ended the chat<font style=\"font-size:10px;color:#444444;font-family:arial,helvetica,sans-serif;font-weight:normal;white-space:nowrap\">                            <font face=\"arial, helvetica, sans-serif\" style=\"font-weight:normal;font-size:10px;color:#444444\">11:21 AM</font></font></font>                </div>            </td>            <td style=\"background-color : #ffffff;width: 3px;\"><font style=\"background-color:#ffffff\"></font></td>            <td style=\"background-color : #ffffff;width: 31px;\"><font style=\"background-color:#ffffff\"></font></td>        </tr>\t\t\t\t\t\t<tr class=\"paddingBetweenMsgs\">            <td colspan=\"5\" style=\"height:20px;color:#ffffff;\"><font style=\"color:#ffffff\"><br></font></td>        </tr>\t\t\t\t\t\t<tr class='chatEndTime' style='height:46px;background-color : #444444;padding:0px 0px 0px 0px;'>\t<td style='width: 31px;'>\t</td>\t<td style='width: 3px;'>\t</td>\t<td style='width:502px;'>\t\t<div style='padding:21px 0px 14px 0px;'>\t\t\t<font style='font-family:arial,helvetica,sans-serif;font-size:12px;color:#ffffff'><B>CHAT ENDED AT</B> 11:21 AM (2 Oct 2017)</font>\t\t</div>\t</td>\t<td style='width: 3px;'>\t</td>\t<td style='width: 31px;'>\t</td></tr>\t\t\t\t<tr class=\"footer\" style=\"height:46px;background-color : #000000;padding:0px 0px 0px 0px\">            <td style=\"width:31px;\"><font style=\"background-color:#000000\"></font></td>            <td style=\"width: 3px;\"></td>            <td style=\"width: 502px;\">                <div style=\"padding:16px 0px 11px 0px;\">                    <font style=\"display:inline;font-size:14px;color:#818082;font-family:arial,helvetica,sans-serif;font-weight:bold;\">                    <font face=\"arial, helvetica, sans-serif\" style=\"font-weight:bold;font-size:14px;color:#818082\">Live Chat</font></font> <font style=\"display:inline;font-size:14px;color:#494949;font-family:arial,helvetica,sans-serif;font-weight:bold;\">                    <font face=\"arial, helvetica, sans-serif\" style=\"font-weight:bold;font-size:14px;color:#494949\">by ECE</font></font>                </div>            </td>            <td style=\"width: 3px;\"></td>            <td style=\"background-color : #000000;width: 31px;\"><font style=\"background-color:#000000\"></font></td>        </tr>\t\t</table>\t\t <meta content=\"noopen\" name=\"DownloadOptions\"></BODY></HTML>"
                            }
                        ]
                    }
                }
            },
            "id": 1094
        }
    ]
}


Transcript content without query parameter "payloadVersion"

&lt;B&gt;CHAT STARTED AT&lt;/B&gt; 11:18 AM (2 Oct 2017)&#xD;
&#xD;
amy 11:18 AM : I am looking for a new laptop. &#xD;
system 11:18 AM : You are now chatting with JennyAnthony &#xD;
JennyAnthony 11:19 AM : Please visit our retail outlet for a better experience. &#xD;
system 11:20 AM : FrankRobert has joined the chat &#xD;
FrankRobert 11:20 AM : Please refer this attachment &#xD;
FrankRobert 11:20 AM : FrankRobert sent an attachment AllNewLaptops.txt &#xD;
amy 11:20 AM : amy accepted attachment AllNewLaptops.txt &#xD;
system 11:21 AM : JennyAnthony has ended the chat &#xD;
&#xD;
&lt;B&gt;CHAT ENDED AT&lt;/B&gt; 11:21 AM (2 Oct 2017)

     


Example 10 - Get email content with inline embedded attachment content

This example demonstrates the following:

  • To return embedded inline attachment content in email content.

XML

Request

Method URL
GET /ws/v12/interaction/activity/2481?$attribute=payload&embedInlineAttachment=yes

Request headers

Name Value
X-egain-session Valid session ID
Accept application/xml
Accept-Language en-US

Response
HTTP/1.1 200 OK

Response headers

Name Value
X-egain-session current session ID
Content-Type application/xml

Response body

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<activities
	xmlns="http://bindings.egain.com/ws/model/v12/gen/interaction/activity"
	xmlns:ns2="http://bindings.egain.com/ws/model/v12/gen/interaction/case"
	xmlns:ns3="http://bindings.egain.com/ws/model/v12/gen/platform"
	xmlns:ns4="http://bindings.egain.com/ws/model/v12/gen/common"
	xmlns:ns5="http://bindings.egain.com/ws/model/v12/gen/interaction/folder"
	xmlns:ns6="http://bindings.egain.com/ws/model/v12/gen/interaction/customer"
	xmlns:ns7="http://bindings.egain.com/ws/model/v12/gen/interaction/contactperson"
	xmlns:ns8="http://bindings.egain.com/ws/model/v12/gen/interaction/contactpoint"
	xmlns:ns9="http://bindings.egain.com/ws/model/v12/gen/kb"
	xmlns:ns10="http://bindings.egain.com/ws/model/v15/gen/kb/edition"
	xmlns:ns11="http://bindings.egain.com/ws/model/v15/gen/kb/profile"
	xmlns:ns12="http://bindings.egain.com/ws/model/v12/gen/interaction/attachment"
	xmlns:ns13="http://bindings.egain.com/ws/model/v12/gen/mail/alias"
	xmlns:ns14="http://bindings.egain.com/ws/model/v12/gen/live/entrypoint">
	<activity id="2481">
		<link rel="self" href="/system/ws/v12/interaction/activity/2481"/>
		<case id="2299">
			<ns2:link rel="case" href="/system/ws/v12/interaction/case/2299"/>
		</case>
		<department id="1005">
			<ns3:name>mail</ns3:name>
		</department>
		<mode>
			<ns4:value>inbound</ns4:value>
			<ns4:displayValue>Inbound</ns4:displayValue>
		</mode>
		<type>
			<value>email</value>
			<displayValue>Email</displayValue>
			<subtype>
				<ns4:value>general</ns4:value>
				<ns4:displayValue>General</ns4:displayValue>
			</subtype>
		</type>
		<isSecure>false</isSecure>
		<sentOnBehalf>false</sentOnBehalf>
		<status>
			<value>assigned</value>
			<displayValue>Assigned</displayValue>
			<substatus>
				<ns4:value>in_progress</ns4:value>
				<ns4:displayValue>In Progress</ns4:displayValue>
			</substatus>
			<assigned>
				<user id="1024">
					<ns3:name>John Summers</ns3:name>
					<ns3:firstName>John</ns3:firstName>
					<ns3:lastName>Summers</ns3:lastName>
				</user>
				<activityFolder id="6">
					<ns5:name>
						<ns4:value>activities_current</ns4:value>
						<ns4:displayValue>Current</ns4:displayValue>
					</ns5:name>
				</activityFolder>
				<isPinned>false</isPinned>
				<isLocked>false</isLocked>
			</assigned>
		</status>
		<lastModified date="2019-04-25T12:49:49.000Z">
			<ns4:user id="1024">
				<ns3:name>John Summers</ns3:name>
				<ns3:firstName>John</ns3:firstName>
				<ns3:lastName>Summers</ns3:lastName>
			</ns4:user>
		</lastModified>
		<subject>Defective product delivered</subject>
		<userLastWorked id="1024">
			<ns3:name>John Summers</ns3:name>
			<ns3:firstName>John</ns3:firstName>
			<ns3:lastName>Summers</ns3:lastName>
		</userLastWorked>
		<customer id="1403">
			<ns6:link rel="customer" href="/system/ws/v12/interaction/customer/1403"/>
			<ns6:customerName>James </ns6:customerName>
			<ns6:contactPersons>
				<ns7:contactPerson id="1403">
					<ns7:isSystemCreated>false</ns7:isSystemCreated>
					<ns7:firstName>James</ns7:firstName>
					<ns7:contactPoints>
						<ns8:contactPoint id="1737">
							<ns8:type>
								<ns8:value>email</ns8:value>
								<ns8:displayValue>Email</ns8:displayValue>
								<ns8:email>
									<ns8:emailAddress>wjames@gmail.com</ns8:emailAddress>
								</ns8:email>
							</ns8:type>
						</ns8:contactPoint>
					</ns7:contactPoints>
				</ns7:contactPerson>
			</ns6:contactPersons>
		</customer>
		<attachments>
			<ns12:count>1</ns12:count>
			<ns12:purgedCount>0</ns12:purgedCount>
			<ns12:link rel="attachment" href="/system/ws/v12/interaction/activity/2481/attachment"/>
		</attachments>
		<notes>
			<Link rel="note" href="/system/ws/v12/interaction/activity/2481/note"/>
		</notes>
		<isContentPurged>false</isContentPurged>
		<payload>
			<email>
				<lastAction>
					<value>I18N_CASEMGMT_ACTION_SAVE_DRAFT</value>
					<displayValue>Draft saved</displayValue>
				</lastAction>
				<hasDraft>true</hasDraft>
				<leaveOpen>true</leaveOpen>
				<isEscalated>false</isEscalated>
				<isOutboundFailed>false</isOutboundFailed>
				<alias id="1007">
					<ns13:name>support</ns13:name>
					<ns13:value>support@business.com</ns13:value>
				</alias>
				<date date="2019-04-17T09:19:32.000Z"/>
				<contents>
					<content>
						<ns4:type>text</ns4:type>
						<ns4:value>Hi. Defective refigrator was delivered to me. Please find the below image. I want it to be replaced.</ns4:value>
					</content>
					<content>
						<ns4:type>html</ns4:type>
						<ns4:value>&lt;div class="eGainmsgDIV23" style="font-size:13px;font-family:sans-serif, Arial, Verdana, Trebuchet MS;font-weight:400;"&gt;&lt;br /&gt;Hi. Defective refigrator was delivered to me. Please find the below image. I want it to be replaced.&lt;br /&gt;&lt;br /&gt;&lt;img alt="" src="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAVCAYAAABc6S4mAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHQSURBVEhL7ZPdK4NhGMblI9/f5lu+ohalJHHmxIm/QYiUcsQRIt9J7YRDJ8M228xmxhqL1rTmXMoBp8p/sLNd7uthDky82hwod93d7/u093ddXc+9FPxy/Qt8W3ECKTOBhPpjfSpQY4t+2ZXWKFJ35bdGqJkmnbEnczZJAoQRzJm1D+SYgFzpzLkkCOQJiI4zBUxogRkosgAlB/I+n6CA7iCKdIHTdb6AiwVcJuAKK1BlAwoXEhCoktwZSfYbnI7LBVwt4LpDoF66dFGDQDgcRigUQjAYRCAQwNXlJfx+P859Pni93nc4XdfagQYH0HwEtDrlbEmDAOGRSOTTPvV4VCwxeKPAWwSsdwHtx0DNsgYBOifs7vEZ/VN29E6YVfPsxO1WmVe/OSe8TeAdbqDzRGJa1SDAWGKOp7f96B43qua7y+lU7pk5Y6Fzwrs8QM8Z0LSmQYCZE7ZpukbX6A6mtnzom9xVZ0cOBwoGDSgeMkA3bEDliEF9Uz/2OlvXNQjwQgkbW3dhYHpfPd8+PKlpt9nUKnJbeKHMnLE0i3PC9RsaBLgthF3c3GN0xaGeY221yAX8sOIEuIrcFl4oM2csdE64xSR/3R9WnECy668LAC/jtOHEUUiNFgAAAABJRU5ErkJggg==" style="height:50px; width:50px" /&gt;&lt;/div&gt;</ns4:value>
					</content>
				</contents>
				<emailAddresses>
                    <from>wjames@gmail.com</from>
                    <to>
                        <address>wjames@gmail.com</address>
                    </to>
                    <replyTo>
                        <address>support@business.com</address>
                    </replyTo>
                    <receiver>support@business.com</receiver>
                </emailAddresses>
			</email>
		</payload>
	</activity>
</activities>

JSON

Request

Method URL
GET /ws/v12/interaction/activity/2481?$attribute=payload&embedInlineAttachment=yes

Request headers

Name Value
X-egain-session Valid session ID
Accept application/json
Accept-Language en-US

Response
HTTP/1.1 200 OK

Response headers

Name Value
X-egain-session current session ID
Content-Type application/json

Response body

{
  "activity": [
    {
      "link": {
        "rel": "self",
        "href": "/system/ws/v12/interaction/activity/2481"
      },
      "case": {
        "link": {
          "rel": "case",
          "href": "/system/ws/v12/interaction/case/2299"
        },
        "id": 2299
      },
      "department": {
        "name": "mail",
        "id": 1005
      },
      "mode": {
        "value": "inbound",
        "displayValue": "Inbound"
      },
      "type": {
        "value": "email",
        "displayValue": "Email",
        "subtype": {
          "value": "general",
          "displayValue": "General"
        }
      },
      "isSecure": false,
      "sentOnBehalf": false,
      "status": {
        "value": "assigned",
        "displayValue": "Assigned",
        "substatus": {
          "value": "in_progress",
          "displayValue": "In Progress"
        },
        "assigned": {
          "user": {
            "name": "John Summers",
            "firstName": "John",
            "lastName": "Summers",
            "id": 1024
          },
          "activityFolder": {
            "name": {
              "value": "activities_current",
              "displayValue": "Current"
            },
            "id": 6
          },
          "isPinned": false,
          "isLocked": false
        }
      },
      "lastModified": {
        "user": {
          "name": "John Summers",
           "firstName": "John",
           "lastName": "Summers",
          "id": 1024
        },
        "date": "2019-04-25T12:49:49.000Z"
      },
      "subject": "Fwd: POR [#2299]",
      "userLastWorked": {
        "name": "John Summers",
        "firstName": "John",
        "lastName": "Summers",
        "id": 1024
      },
      "customer": {
        "link": {
          "rel": "customer",
          "href": "/system/ws/v12/interaction/customer/1403"
        },
        "customerName": "James",
        "contactPersons": {
          "contactPerson": [
            {
              "isSystemCreated": false,
              "firstName": "James",
              "contactPoints": {
                "contactPoint": [
                  {
                    "type": {
                      "value": "email",
                      "displayValue": "Email",
                      "email": {
                        "emailAddress": "wjames@gmail.com"
                      }
                    },
                    "id": 1737
                  }
                ]
              },
              "id": 1403
            }
          ]
        },
        "id": 1403
      },
      "attachments": {
        "count": 1,
        "purgedCount": 0,
        "link": {
          "rel": "attachment",
          "href": "/system/ws/v12/interaction/activity/2481/attachment"
        }
      },
      "notes": {
        "Link": {
          "rel": "note",
          "href": "/system/ws/v12/interaction/activity/2481/note"
        }
      },
	  "isContentPurged": false,
      "payload": {
        "email": {
          "lastAction": {
            "value": "I18N_CASEMGMT_ACTION_SAVE_DRAFT",
            "displayValue": "Draft saved"
          },
          "hasDraft": true,
          "leaveOpen": true,
          "isEscalated": false,
          "isOutboundFailed": false,
          "alias": {
            "name": "support",
            "value": "support@business.com",
            "id": 1007
          },
          "date": {
            "date": "2019-04-17T09:19:32.000Z"
          },
          "contents": {
            "content": [
              {
                "type": "text",
                "value": "\n Hi. Defective refigrator was delivered to me. Please find the below image. I want it to be replaced.\n\n"
              },
              {
                "type": "html",
                "value": "<div class=\"eGainmsgDIV23\" style=\"font-size:13px;font-family:sans-serif, Arial, Verdana, Trebuchet MS;font-weight:400;\"><br />Hi. Defective refigrator was delivered to me. Please find the below image. I want it to be replaced.<br /><img alt=\"\" src=\"data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAVCAYAAABc6S4mAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHQSURBVEhL7ZPdK4NhGMblI9/f5lu+ohalJHHmxIm/QYiUcsQRIt9J7YRDJ8M228xmxhqL1rTmXMoBp8p/sLNd7uthDky82hwod93d7/u093ddXc+9FPxy/Qt8W3ECKTOBhPpjfSpQY4t+2ZXWKFJ35bdGqJkmnbEnczZJAoQRzJm1D+SYgFzpzLkkCOQJiI4zBUxogRkosgAlB/I+n6CA7iCKdIHTdb6AiwVcJuAKK1BlAwoXEhCoktwZSfYbnI7LBVwt4LpDoF66dFGDQDgcRigUQjAYRCAQwNXlJfx+P859Pni93nc4XdfagQYH0HwEtDrlbEmDAOGRSOTTPvV4VCwxeKPAWwSsdwHtx0DNsgYBOifs7vEZ/VN29E6YVfPsxO1WmVe/OSe8TeAdbqDzRGJa1SDAWGKOp7f96B43qua7y+lU7pk5Y6Fzwrs8QM8Z0LSmQYCZE7ZpukbX6A6mtnzom9xVZ0cOBwoGDSgeMkA3bEDliEF9Uz/2OlvXNQjwQgkbW3dhYHpfPd8+PKlpt9nUKnJbeKHMnLE0i3PC9RsaBLgthF3c3GN0xaGeY221yAX8sOIEuIrcFl4oM2csdE64xSR/3R9WnECy668LAC/jtOHEUUiNFgAAAABJRU5ErkJggg==\" style=\"height:50px; width:50px\" /></div>"
              }
            ]
          },
          "emailAddresses": {
            "from": "wjames@gmail.com",
            "to": {
              "address": [
                "wjames@gmail.com"
              ]
            },
            "replyTo": {
              "address": [
                "support@business.com"
              ]
            },
            "receiver": "support@business.com"
          }
        }
      },
      "id": 2481
    }
  ]
}