Mobile SDK > Disconnected mobile application reference > Mobile Synchronization Web Service (MobileSyncWebService) reference > URL overview > /Projects/PROJECT/SampleData URL
 
/Projects/PROJECT/SampleData URL
Description
When the project includes sample data, the URL retrieves the sample record definition and sample records that are assigned to the logged in interviewer. Records are returned regardless of which Queue they are in. Associated case data might exist when an interview is transferred between interviewers. The case data's response XML is included in the URL response. If the client has existing sample data, the client should include information about the existing sample. Including the information ensures that only changes are retrieved.
Note The sample management script and call outcomes are not included. It is expected that the mobile application will hard-code rules, or download any rules as a resource file. Call outcomes are described in Call outcomes, and can be hard-coded. When modifiable call outcomes are required, the MobileSyncWebService can be modified to include URLs that convert and download the metadata files. Other settings, such as the fields that display in UNICOM Intelligence Interviewer - Offline for Windows, are also not included.
Get Request
Example URL:
/SPSSMR/MobileSync/Projects/Museum/SampleData
Example XML:
<SampleData>
  <SampleRecords>
    <SampleRecord ID="ID10" ReturnTime="2014-10-17T07:36:13Z" HasCaseData="true" Unassigned="false" />
    <SampleRecord ID="ID11" ReturnTime="2014-10-17T07:36:27Z" HasCaseData="true" Unassigned="false" />
  </SampleRecords>
</SampleData>
Get Response
Example response:
<SampleData>
<SampleFields>
<SampleField Name="Queue" DataType="Text" />
<SampleField Name="Active" DataType="Boolean" />
<SampleField Name="Test" DataType="Boolean" />
<SampleField Name="CallOutcome" DataType="Text" />
<SampleField Name="ActivityStartTime" DataType="Date" />
<SampleField Name="UserId" DataType="Text" />
...
</SampleFields>
<SampleHistoryFields>
<SampleField Name="UserId" DataType="Text" />
<SampleField Name="SampleId" DataType="Text" />
<SampleField Name="CallOutcome" DataType="Text" />
<SampleField Name="InterviewMode" DataType="Text" />
</SampleHistoryFields>
<SampleRecords>
<SampleRecord ID="ID10" ReturnTime="2016-10-17T07:36:13Z" CheckSum="aaaabbbbccccdddd" IsUnassigned="false">

<SampleFields>
<SampleField Name="Queue" DataType="Text">
          COMPLETED
        </SampleField>
<SampleField Name="Active" DataType="Boolean">
          False
        </SampleField>
<SampleField Name="Test" DataType="Boolean">
          False
        </SampleField>
<SampleField Name="CallOutcome" DataType="Text">
          EarlyComplete
        </SampleField>
<SampleField Name="ActivityStartTime" DataType="Date">2016-09-07T09:43:49Z
        </SampleField>
<SampleField Name="UserId" DataType="Text">
          pan
        </SampleField>
...
</SampleFields>
<Response ID="ID10">
<Variable FullName="DataCollection.Status" DataType="Categorical" Value="{completed,signal}" />
<Variable FullName="DataCollection.StartTime" DataType="Date" Value="2014-10-17T07:36:04Z" />
<Variable FullName="DataCollection.FinishTime" DataType="Date" Value="2014-10-17T07:36:13Z" />
<Variable FullName="STRATA" DataType="Text" Value="10" />
<Variable FullName="AGENT" DataType="Categorical" Value="{r10}" />
<Variable FullName="FirstInterview" DataType="Categorical" Value="{yes}" />
<Variable FullName="randomSelect" DataType="Categorical" Value="{branda,brandb}" />
<Variable FullName="BrandRating" DataType="Categorical" Value="{poor}" />
</Response>
</SampleRecord>
    <SampleRecord ID="ID11" ReturnTime="2014-10-17T07:36:27Z" CheckSum="1111222233334444" IsUnassigned="false" />
  </SampleRecords>
</SampleData>
See also
URL overview