Time Entry Object

Represents a single time entry object. Internally, ServiceMobility does not support a single time entry object that spans more than a single day. If the recorded end time is a different day than the start time, then ServiceMobility will automatically split the record into multiple records - one for each day the time spans. When the system splits a record it sets the SplitGuid property to the ID of the first time entry record in the split.

Time Entry Object Formats

JSON Format
{
    "EndGPSLatitude": "",
    "EndGPSLongitude": "",
    "FlexAttrs": {
        "${FlexFormID}" : {
            "${FlexAttrID}" : [
                "",
                ""
            ]
        }
    },
    "ID": "",
    "ModifiedUTC": "",
    "RefCode": "",
    "SplitGuid": "",
    "StartGPSLatitude": "",
    "StartGPSLongitude": "",
	"Status" : "",
    "SysActCode" : "",
    "SysActRefCode" : "",
    "SysCatActivityID": "",
    "SysCatCode" : "",
    "SysCatID": "",
    "SystemEndUTC": "",
    "SystemGenerated": false,
    "SystemStartUTC": "",
	"TimeCardID" : "",
    "UserEndUTC": "",
    "UserStartUTC": ""
}

Time Entry Object Properties

(info) Required properties are in bold.

PropertyValueDescription
EndGPSLatitudestringIf GPS is available, and the option to collect GPS information has been enabled, this property will contain the latitude coordinate of the technician at the time the end time was recorded. Otherwise, this property will be set to 0.0.
EndGPSLongitudestringIf GPS is available, and the option to collect GPS information has been enabled, this property will contain the longitude coordinate of the technician at the time the end time was recorded. Otherwise, this property will be set to 0.0.
FlexAttrsobject

This property contains the FlexAttr values that were entered.

PropertyTypeDescription
${FlexFormID}object

Identifies the FlexForm

PropertyTypeDescription
${FlexAttrID}array

Contains an collection of values entered for the FlexAttr field identified by ${FlexAttrID}.

IDstringGlobally unique identifier of the time entry record. This ID is automatically created and populated by the ServiceMobility application.
ModifiedUTCdatetimeThe date and time, in UTC format, when the object was last modified.
RefCodestring

The meaning of this, optional, property changes based on the value of the SysCatCode property.

SysCatCodeRefCode Description
9Work order number
SplitGUIDstringIf set, this property refers to the ID of first time entry record in the overall split.
StartGPSLatitudestringIf GPS is avaialble, this property will contain the latitude coordinate at the time the start time was recorded. Otherwise, if GPS was not available then this property will be set to 0.0.
StartGPSLongitudestringIf GPS is avaialble, this property will contain the longitude coordinate at the time the start was recorded. Otherwise, if GPS was not available then this property will be set to 0.0.
Statusstring
SysActCodestringIdentifies the activity code associated with the time entry object. This activity code is a child of the SysCatCode property.
SysActRefCodestring(warning) This property has been deprecated.
SysCatActivityIDstring(warning) This property has been deprecated. Please use the SysActCode property instead.
SysCatCodestringIdentifies the time entry child system category code associated with the time entry object. 
SysCatIDstring(warning) This property has been deprecated. Please use the SysCatCode property instead.
SystemEndUTCdatetimeThe ending date and time, in UTC format, as recorded by the system. This value can not be changed by the technician.
SystemGeneratedboolean

Identifies is the time entry object was automatically created by the mobile application.

Valid values are:

  • false - The object was not auto generated. This is the default value if this property is missing.
  • true - The object was auto generated by the mobile application.
SystemStartUTCdatetimeThe starting date and time, in UTC format, as recorded by the system. This value is set at the point when the object was first created. This value can not be changed by the technician.
UserEndUTCdatetimeThe ending date and time, in UTC format, as recorded by the mobile worker. This value may be different from the SystemEndUTC property if the application configuration allows the mobile worker to edit time entry values.
UserStartUTCdatetimeThe starting date and time, in UTC format, as recorded by the mobile worker. This value may be different from the SystemStartUTC property if the application configuration allows the mobile worker to edit time entry values.