Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

An activity is a scheduled event that may or may not be associated with an actual address. Activities appear within the mobile application's schedule views along side scheduled work orders.

Any time the mobile user performs an action that causes the activity object to change, it will automatically be uploaded to the server. For example, when the activity is started, the activity object will be uploaded to the server with the updated Started field populated.

Activity Object Formats

JSON Format
{
    "ActivityID": "", 
    "Started": "", 
    "Ended": "", 
    "Address": {
        "City": "", 
        "Country": "", 
        "Line1": "", 
        "Line2": "", 
        "Name": "", 
        "State": "", 
        "Zip": ""
    }, 
    "Desc": "", 
    "Dur": "", 
    "Extensions": {
        "key1": "value1", 
        "key2": "value2"
    },  
    "FlexForms": [
        "${FlexFormID}"
    ],
    "FlexView": [
        {
            "Title": "GroupName",
            "Items": [
                {
                    "Label": "labeltext",
                    "Value": "valuetext"
                }
            ]
        }
    ],
    "Paused": false, 
    "Priority": "", 
    "Remarks": "",
    "SchedDur": "", 
    "SchedEnd": "", 
    "SchedStart": "", 
    "Status": "", 
    "SysActCode": "", 
    "Title": "", 
    "UserName": ""
}

Activity Object Properties

(info) Required properties are in bold.

PropertyTypeDescription
ActivityIDstringThe unique identifier for the activity. This value must be globally unique across all activities.
DescriptionstringA simple description of the activity.
Durinteger

The duration, in seconds, on how long the activity took to complete.

(warning) This property is being deprecated. You can calculate the actual duration based on the Started and Ended values.

Endeddatetime

The actual end date and time of when the activity was completed.

Extensionsobject

This object contains an optional collection of key/value pairs.

These key/value are defined and controlled by the customer and are typically used to assist in integration by pass additional data around the system.

FlexAttrsobject(info) Flex attributes for activities will be implemented in a future release.
Pausedboolean

Identifies is the activity is currently paused.

Valid values are:

  • true = The activity is currently paused.
  • false = The activity is not paused.
Prioritystring

Identifies the current priority of the activity.

See: Activity Priorities

RefCodestring

Identifies the primary key of a record this activity record is associated with. The meaning of the RefCode is identified by the RefType field.

RefTypestring

If this activity record is associated (linked) with another object (e.g. a work order) then this field identifies the type of object it is linked to and the RefCode property identifies the actual object ID.

Valid values are:

  • 0 or null - The activity is not associated with any other object in the system.
  • 1001 - The activity is associated with a work order. The RefCode property will contain the work order number that it is associated with.
  • 1002 - The activity is associated with an account. The RefCode property will contains the account number that it is associated with.
RemarkscollectionA collection of remarks made on the activity.
SchedDurationinteger(warning) This field has been deprecated.
SchedEndTimedatetimeThe date and time, in UTC format, when the activity is scheduled to end.
SchedStartTimedatetimeThe date and time, in UTC format, when the activity is scheduled to start.
StarteddatetimeThe date and time, in UTC format, when the activity was started.
Statusstring

Identifies the current status of the activity.

SysActCodestring

Identifies the type of activity. Activity types are defined and controlled with a system category.

TitlestringA short title for the activity.
  • No labels