Gå til indhold

WorkZone OData specifics

Dette indhold er ikke tilgængeligt i dit sprog endnu.

OData is a generalized API which can be used in a large number of different applications, but there are a number of specific implementation details in the WorkZone OData implementation which are worth mentioning.

In WorkZone, an object is very often referenced by its unique identification number (ID) at the OData level, however, there are several IDs in WorkZone and it is therefore important to use the correct ID for queries and searches. Selecting the correct ID depends on which entity is to be queried, the data to be retrieved as well as the overall purpose and composition of the query.

The following identification fields are always present for all objects in WorkZone OData:

FieldDescriptionCase examples
IDThe internal unique identifier for this object.

The ID may not be visible in the user interface such as WorkZone Client, but it will always exist and when other objects are referencing this object it will be by their ID.
67453
UserKeyThe external unique identifier for this object.

This identification number is usually displayed in user interfaces to identify the object.
2021/41-765
SummaryA read-only computed field, which consists of selected information collected from the object to facilitate identification for a human.

Example: For a case, it is the concatenation of four bits of File information: The UserKey, the case title, the case category and the officer.
2021/41-765, New servers, Contract, HBR

In WorkZone OData, some fields in Cases, Documents or Contacts are named with the _Value suffix, for example the RecordGrp_Value field. For these fields, there will also be a corresponding field with the _Summary suffix, for example the RecordGrp_Value field and the RecordGrp_Summary field.

In addition to the _Value and _Summaryr fields, there is also a RecordGrp field, which contains the ID of the corresponding RecordGroup object.

The RecordGrp_Value field contains the ID of the specific record group in the RecordGroup object while the RecordGrp_Summary field contains a concatenation of the RecordGrp_Value and the text of the record group that fits the record group ID in the RecordGrp_Value field.

The RecordGrp field indicates which object to query (here the RecordGroup object) while the RecordGrp_Value identifies which record in the object information is to be retrieved from (For the RecordGrp example, the key that corresponds to the desired record group).

The RecordGrp_Summary field displays a selected combination of retrieved information presented for easier overview (For the RecordGr example, the unique ID used to retrieve the information and the name of the retrieved record group.)

Just as a Case has a _Summary field, so does a Record Group (for example, the ID is “CONTR” and Text is “Contract”). This results in the following values: RecordGrp_Value=“CONTR” and RecordGrp_Summary=“CONTR, Contract”.

To find the field value for any given _Value field, locate the field in WorkZone Client and open the drop-down list in the field. The field value will be displayed as the first element of the list, before the comma separator.