Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
themeRDark
firstline1
titleExample Job Data Formatting
linenumberstrue
collapsetrue
<?xml version="1.0"?>
<JobGroupInput xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <JobGroupName>Collection Run 1</JobGroupName>
  <Jobs>
    <JobInput>
      <JobName>Warehouse Jobs 5</JobName>
      <JobId>123345</JobId>
      <JobParts>
        <JobPartInput>
          <JobPartName>Sample 1</JobPartName>
          <JobPartId>198576</JobPartId>
          <ScheduledDate>2017-08-14T00:00:00+01:00</ScheduledDate>
          <ScheduledLocation>
            <DisplayText>An Example Location</DisplayText>
            <LocationType>Warehouse Location</LocationType>
            <Latitude>52.123</Latitude>
            <Longitude>1.789</Longitude>
            <GridEast>543678</GridEast>
            <GridNorth>123654</GridNorth>
            <BuildingName>123456</BuildingName>
            <BuildingNumber>12</BuildingNumber>
            <Street>Main Street</Street>
            <City>London</City>
            <Zip>AB1 3CD</Zip>
            <Zone>Zone 1</Zone>
            <ReferenceNumber>A123465</ReferenceNumber>
          </ScheduledLocation>
          <DataFields>
            <DataFieldInput>
              <DisplayText>Gross Weight of Sample</DisplayText>
              <FieldName>Gross Weight</FieldName>
              <DataType>number</DataType>
              <ReadOnly>false</ReadOnly>
              <Optional>false</Optional>
              <DefaultValue>0.00</DefaultValue>
            </DataFieldInput>
          </DataFields>
          <ItemsForCollection>
            <ItemForCollectionInput>
              <ItemId>123456</ItemId>
              <DisplayText>2KG BULK SAMPLE</DisplayText>
              <ItemType>Physical Sample</ItemType>
              <Optional>false</Optional>
            </ItemForCollectionInput>
          </ItemsForCollection>
          <Attributes>
            <AttributeInput>
              <AttributeName>Example Attribute Name</AttributeName>
              <AttributeValue>Example Attribute Value</AttributeValue>
            </AttributeInput>
          </Attributes>
          <MethodToUse>Warehouse</MethodToUse>
        </JobPartInput>
      </JobParts>
    </JobInput>
  </Jobs>
</JobGroupInput>


Tip

An XSD schema file for this XML format is available here: JobGroupInput.xsd


Remote data collection involves a technician travelling to a given location on one or more occasions to collect data and physical items. To represent that process in the import data format, each data collection event is represented as a JobInput that has a unique ID and is made up of one or more JobPartInputs. A JobPartInput represents a single visit to a given location. Each JobPartInput has a target location to visit (ScheduledLocation) along with a set of data items to collect on-site (DataFields) and physical items to collect (ItemsForCollection).

...