When the Deliver application data as XML option is selected (see General Settings), Softdial Campaign Manager™ provides the record data included in the Data (DT) parameter in an XML document format. XML data should be selected if the application data is likely to include characters that are considered invalid in standard SDMP messages - see Invalid Characters on the Configuration Issues page.
The following is an example of contact record data as delivered to an agent application, e.g. Softdial Scripter™ 2. It is passed to and from Softdial Campaign Manager™, via Softdial CallGem™, in the Data (DT) parameter of the agent layer messages, e.g. Begin Preview [BP], Agent Connect [AC], Transaction Complete [TC].
It is formatted on a single line, without carriage return (CR) and linefeed (LF) characters, since in the SDMP protocol, CR LF indicates end of message. The example document below has been formatted for easy reading.
<MagicXMLDocument xmlns="http://www.sytelco.com/SCC/CM">
<r>
<c i="0" n="Contact_ID" m="true" d="130" />
<c i="0" n="Title" m="false" d="Ms" />
<c i="0" n="Forename" m="false" d="Janine" />
<c i="0" n="Surname" m="false" d="Grummitt" />
<c i="0" n="Address_1" m="false" d="193 Oak Road" />
<c i="0" n="Address_2" m="false" d="Bakerstone" />
<c i="0" n="Address_3" m="false" d="London" />
<c i="0" n="Address_4" m="false" d="" />
<c i="0" n="Address_5" m="false" d="" />
<c i="0" n="Address_6" m="false" d="" />
<c i="0" n="Postcode" m="false" d="SW9 2XZ" />
<c i="0" n="Telephone" m="false" d="01234000130" />
<c i="0" n="Switch_Result" m="true" d="0" />
<c i="0" n="Agent_Result" m="true" d="" />
<c i="0" n="Result_TS" m="true" d="40100.486463" />
<c i="0" n="Retry_Count" m="true" d="" />
<c i="0" n="Retry_TS" m="true" d="" />
<c i="0" n="Retry_Username" m="false" d="" />
<c i="0" n="Retry_Number" m="false" d="" />
<c i="0" n="Retry_Index" m="true" d="" />
<c i="0" n="Complete_TS" m="true" d="" />
</r>
</MagicXMLDocument>
There is no <?xml> header tag specified.
The r element represents a row. Each column (field) in the record is represented with a c element, which has the following attributes:
When an agent application returns a data update in the Transaction Complete [TC] message, the attributes i, n and m must remain constant and as received in the original Agent Connect [AC] message. The d data attribute contains the updated data values.
Other applications can add to this set of data - see The Data (DT) Parameter.
As well as conforming to XML encoding rules, you must ensure that SDMP and XML characters are not directly used and encoded within each data attribute. These must be represented using XML entities, e.g:
For reference, the standard XML reserved characters that must be encoded are:
Some fields are reserved by Softdial Campaign Manager™ for its own contact management and attempts to update will be ignored. In the above example, these fields are:
From V10.6.568 - the i parameter is no longer used (still present for legacy xml/ xsd validation compatibility but now set to '0' and ignored). The n (name) field is now generally used as the key.
This is likely to be a breaking change for existing integrations
When using DateTime type fields in a Softdial Campaign Manager™ table, the format of the date-time string used in the agent layer is tied to the Softdial Campaign Manager™ application data format.
yyyy-mm-dd[ hh:mm:ss[.9999999][ plus/minus hh:mm]]
For more information, please refer to:yyyy-mm-ddThh:mm:ss[.999]
This format is output by the Softdial Scripter™ 2 Current Date Time step.See also The Data (DT) Parameter.