Preparing the SampleData XML
After completing the ID1 case, the sample record must be updated accordingly. The following fields must be updated:
SampleData XML fields
ActivityStartTime
Sets the start time when processing the sample.
CallOutcome
Sets the
CallOutcome results. For more information, see
Call and contact outcome codes.
InterviewMode
Set to Personal for mobile interviews.
PreviousInterviewerId
Stores the previous UserId before using the sample.
PreviousQueue
Indicates the Queue field value (before changing).
Queue
Sets the current queue for the sample record, For more information, see
Queues.
UserId
Sets the interviewer ID, which is typically the logged on user name.
SampleHistory fields
Because the sample record is updated, the SampleHistory table is used to record the changes. The table includes the following fields:
CallOutcome
The CallOutcome value (after the change).
Duration
The duration between case data start and finish time (in seconds).
IdInterviewMode
Set to Personal for mobile interviews.
SampleId
Stores the sample.
StartTime
The case data start time.
UserId
The interviewer ID, which is typically the logged on user.
Example
The following example shows the Sample Record XML after the change:
<SampleRecord ID="ID1" HasCaseData="false" Unassigned="false" ReturnTime="2014-10-31T02:00:38Z">
<SampleFields>
<SampleField Name="UserName" DataType="Text" Value="Name1"/>
<SampleField Name="Address" DataType="Text" Value="Street1, City1"/>
<SampleField Name="Email" DataType="Text" Value="Name_1@xyz.org"/>
<SampleField Name="Gender" DataType="Text" Value="Male"/>
<SampleField Name="Age" DataType="Text" Value="25"/>
<SampleField Name="Queue" DataType="Text" Value="COMPLETED"/>
<SampleField Name="Active" DataType="Boolean" Value="False"/>
<SampleField Name="Serial" DataType="Long" Value="1"/>
<SampleField Name="ExpirationTime" DataType="Date"
Value="2099-12-31T23:59:59Z"/>
<SampleField Name="SortId" DataType="Long" Value="334220"/>
<SampleField Name="TimeZone" DataType="Long" Value="4"/>
<SampleField Name="AssignedInterviewerId" DataType="Text" Value="user"/>
<SampleField Name="DistributedTo" DataType="Text" Value="user"/>
<SampleField Name="PreviousQueue" DataType="Text" Value="FRESH"/>
<SampleField Name="InterviewMode" DataType="Text" Value="Personal"/>
<SampleField Name="CallOutcome" DataType="Text" Value="Completed"/>
<SampleField Name="PreviousInterviewerId" DataType="Text" Value="user"/>
<SampleField Name="ActivityStartTime" DataType="Date" Value="2014-10- 31T02:00:15Z"/>
<SampleField Name="UserId" DataType="Text" Value="user"/>
</SampleFields>
<SampleHistory StartTime="2014-10-31T02:00:15Z" Duration="23"
CallOutcome="Completed">
<SampleField Name="UserId" DataType="Text" Value="admin"/>
<SampleField Name="SampleId" DataType="Text" Value="ID1"/>
<SampleField Name="InterviewMode" DataType="Text" Value="Personal"/>
</SampleHistory>
</SampleRecord>
Next
See also