Gå til indhold

The structure of requests

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

The standard request has the following structure:

  1. Configuration
  2. Client
  3. Addressee
  4. Priority

You can place these properties in any order.

In this section, you define fields and their properties to be shown on the Document registration form. All available fields and custom fields, if there are any, must be specified in the JSON request. If the field will not be used on the Document registration form, you must specify the following property for it: "visible\":\"None\". If the field will be used, the following property must be defined for it: \"visible\":\"Visible\".

The syntax to start defining configuration is "Config":. Remember to follow JSON syntax.

This is a list of the default fields that you can use on the Document registration form:

  • Title
  • DocumentType
  • Classification
  • State
  • CaseHandler

Other available fields are:

  • ResponsibleUnit
  • ActingUnit
  • Case
  • MainDocument
  • DocumentGroup
  • DocumentNumber
  • Origin
  • MailList
  • LetterDate
  • ReplyDeadline
  • Keywords
  • Text
  • CreatedBy
  • CreatedDate
  • VersionNumber
  • Replied
  • SentFrom
  • ArchivingForm
  • PostalDate
  • RetentionDate
  • Type

Along with the available default fields, you can define the following custom fields that are specific for your organization:

  • Text
  • Data
  • Unique
  • Droplist
  • Integer
  • Decimal
  • Address
  • Contact
  • Employee
  • Unit
  • Case
  • Document

The following validation rules can be set in the WorkZone Configurator for the Text and Unique fields: CVR number, Email address, and Web address.

See more about custom fields in the Administrator Guide for WorkZone Configurator. You can add these fields to the WorkZone 365 configuration using Postman. See more about Postman in Work with Postman. For an example of a JSON request for creating the custom document fields, see Add custom document fields.

In the table below you can find a list of the properties that are applicable to all fields. The required properties must be specified in the JSON request.

PropertiesRequired or optionalValuesComments
labeloptionalstringYou can change a default name of the field.

Note: - Be aware that the WorkZone 365 User Guide will contain the default names in descriptions, which might confuse users.
• Once you change a label to a custom value, it will be applied to all languages. In other words, you cannot localize custom labels.
titleoptionalstringYou can change a default title of the WorkZone 365 pane.

Note: - Be aware that the WorkZone 365 User Guide will contain the default names in descriptions, which might confuse users.
• Once you change a title to a custom value, it will be applied to all languages. In other words, you cannot localize custom titles.
orderrequirednumberTo set the proper number, please see the configuration file. This is the only way to define what number is relevant for your configuration at this moment.
requiredrequired'true', 'false'• 'true' – the field is required.
• 'false' – the field is optional.

Important: You cannot set 'false' to a field that is required in the database. Your changes will not be saved to predict a crash of basic scenarios in WorkZone.
defaultValueoptionalstringSpecify a default value that will be visible to users.
readOnlyrequired'true', 'false'• 'true' – the field is read-only.
• 'false' – the field is available for editing.

Important: You cannot set 'false' to a field that is read-only in the database. Your changes will not be saved to predict a crash of basic scenarios in WorkZone.
visiblerequired'Visible', 'None'• 'Visible' – users can see the field
• 'None' – users don't see the field.

Important: You cannot set 'None' to a field that is required in the current request. Your changes will not be saved to predict a crash of basic scenarios in WorkZone.
PropertiesRequired or optionalSub-propertiesValuesComments
dataSource.Value
optional.selectobjectThe value will be retrieved from the OData entity for a particular item.

Important: Due to complexity of this connection, it is not recommended to change this value without a strong need.
Properties Required or optional Sub-properties Values Comments
dataSource.Items
optional .odataEntity string Specify content of the field.
optional .filter string Define a filter for the entity. For example, you might want to only show cases with the ‘Open’ state.

For WorkZone 365, always use this syntax: "Client":"WZO".

Define to whom the configuration must be applied. Use the following syntax: "NameKey_Value":"XXX", where XXX value can be:

  • a user with the current ID value
  • a unit with the current NameKey value
  • the entire organization if the value is empty.

Define a priority of the configuration by using the following syntax: "Priority":"X", where X is the integer number. The highest priority is 9, the lowest priority is 1. If multiple configurations of the same type exist, priority helps to define which configuration must be prioritized.