GET (Email Reply Draft Data)

Instantiates a server task to retrieve email reply draft data, including the email reply draft content and any agent-side attachments. This information is available while the agent is working on the email reply draft or when the email reply draft is saved and requeued . After the email reply is sent, the information is not available.

URL:

https://<ServerIP>:<Port>/ccp-webapp/ccp/reply/email/<id>/draft

HTTPS method:

GET

Input/Output format:

xml

Parameters:

See Email Reply API Parameters.

Example XML response:

<EmailMessage>
  <id>072D0E871000012B0000ED8B0A568DDF</id>
  <subject>Email subject</subject>
  <fromAddress>sender@xyz.com</fromAddress>
  <toAddress>name1@example.com</toAddress>
  <ccAddress>name2@example.com,name3@example.com</ccAddress>
  <bccAddress>name4@example.com, name5@example.com</bccAddress>
   <ReplyToAddress>name6@example.com</ReplyToAddress>
  <receivedTimestamp>1302551491320</receivedTimestamp>
  <contentType>text/html</contentType>
  <body><![CDATA[ ... ]]></body>
  <attachments>
      <outgoingAttachments>
         <attachment>
             <name>filename</name>
             <refURL>https://<server>:<serverport>/ccp-webapp/ccp/
              reply/email/<id>/attachment/outgoing/
              <fileIdentifier></refURL>
              <sizeBytes>100</sizeBytes>
          </attachment>
          ...
      </outgoingAttachments>
  </attachments>
</EmailMessage> 

HTTPS response headers:

HTTPS response: 202

Location header:

https://<Server>:<Port>/ccp-webapp/ccp/reply/email/
F99A8E33100001470000004A0A56863B/getreplydraft/1234

The client polls the URL provided in the location header to get the status of the task.

URL: Provided in the location header

HTTPS method: GET

Input/Output format: xml

Response:

  • 200—Task is finished with result.

  • 202—Task is in progress. Poll again.