Collaboration Events
The following collaboration events can be specified as part of the request for creating a subscription:
Event | Description | Event Fields |
---|---|---|
chatMessageSent |
The event occurs whenever a message is sent through the collaboration server, including video chats. |
The chatMessageSent event contains the following fields:
|
chatUpdated |
The
event occurs when:
|
The chatUpdated event contains the following fields:
Note: The 'chatUpdated' event is triggered for chats from automatic broadcasting only when the chats are automatically cleaned up by the system. The user does not have an option to leave and end the chat. |
broadcastStatusUpdate |
The event occurs when the broadcast status of a participant is changed. |
The broadcastStatusUpdate event contains the following fields:
|
transactionUpdated |
The event occurs whenever an operation is done on a transaction through Collaboration. A transaction through Collaboration is the transfer of an inventory or activity through chat. |
The transactionUpdated event contains the following fields:
|
The following is the structure of the attachment field in the collaboration events:
- attachment: A record containing the following attachment related fields:
- attachmentId: The identifier of the attachment (integer) that is used to store this attachment in the field collaboration server.
- type: The type of the attachment (string). The values are activity, inventory, resource, image, or location.
- desc: The description of the entity shared (string).
- latitude: The latitude of the shared location (string). This field is available only for location sharing.
- longitude: The longitude of the shared location (string). This field is available only for location sharing.
- filename: The name of the image file shared (string). This field is available only for image sharing.
- downloadUrl: The URL used to download the shared image (string). A GET request to this URL with the authentication of a user with read access to collaboration events will get the image. This field is available only for image sharing.
- activityId: The identifier of the activity with which the shared entity is related (integer). This field is available only for inventory and activity sharing or transferring. The value is zero if the entity isn't related to any activity.
- date: The date of the activity shared or transferred (string). This field is available only for activity sharing or transferring. The date format is YYYY-MM-DD.
- resourceId: The external identifier of the resource (string). This field isn't available for location and image sharing. The value is an empty string if the entity isn't related to any resource.
- resourceInternalId: The internal identifier of the resource (integer). This field isn't available for location and image sharing. The value is zero if the entity isn't related to any resource.
- inventoryType: The type of inventory (string). This field is available only for inventory sharing or transferring.
- status: The pool of the inventory (string). This field is available only for inventory sharing or transferring. The values are resource, customer, installed, and deinstalled.
- inventoryId: The identifier of the inventory shared or transferred (integer). This field is available only for inventory sharing or transferring.
- quantity: The quantity of non serialized inventory transferred (integer). This field is available only for non-serialized inventory transfer from mobility.
The following is the structure of the transaction field in the collaboration events:
- transaction: A record containing the following transaction related fields:
- transactionId: The identifier of the transaction (integer) that is used to store the transaction in the field collaboration server.
- author: The user login of the user who started this transaction (string). This field will be present only for transactions started by a user.
- startTime: The time when this transaction was started (string). The time format is YYYY-MM-DD HH:MM:SS.
- timeoutTime: The time after which the transaction will be timed out (string). The time format is YYYY-MM-DD HH:MM:SS.
- lastUpdatedBy: The user login of the user who last updated the transaction (string). The value is SYSTEM when the server makes an update.
- operationStatus: The latest action that was performed on this transaction (string). The values are accepted, rejected, failed, cancelled, and transferred.
- toAddress: The address of the user to whom this transaction is sent (string). The value is the user who accepted the activity for activity broadcasts. The value is empty if no user accepts the activity in an activity broadcast.
- status: The status of the transaction (string). The values are started, timed out, and finished.