URL Integration parameter

Prev Next

URL Integration in DocuWare enables access to archived documents and DocuWare functions directly via web links. This article provides an overview of the available parameters that can be used to customize and control URL integrations in DocuWare.

URL structure

The URL used to access parts of the DocuWare Web Client from other applications always includes the base URL along with additional parameters, as explained below.

Click here for more code examples and NuGet packeges.

Base URL

The base URL for the integration is made up of the components "HTTP address for the Web Client" and the suffix "integration".

Address of the associated Web Client

The HTTP address of a Web client is made up of the server name of the computer on which the platform was installed, plus the IIS (Internet Information Services) target directory in which the DocuWare Platform Service was published.

  • http://<your_servername>/<DocuWare>/<Platform>/WebClient

You find the address in DocuWare Administration on system level in the Web Connections settings.

Default path extension

Add the suffix "integration" to the URL.

  • http://<your_servername>/<DocuWare>/<Platform>/WebClient/Integration

With DocuWare version 7.1 customers of DocuWare Cloud can create an integration URL without any organisation GUID or specifying name, because the organization is encoded in the base address of the URL. The same applies for users of DocuWare on-premises when the system has only one organization.

Only when a DocuWare system has more than one organization, an identifier is needed:

  • http://<your_servername>/<DocuWare>/<Platform>/WebClient/OrgGUID/Integration

Table URL Parameter

The parameters are added at the end of the base URL. The data part of the URL containing the parameters starts with a question mark (?).

The following table provides a summary of possible parameters. Information about encryption and Base64-encoding you will find in the following chapters.

Parameters

Description

Required

Permitted Values/ Annotations

Base64 URL encoded

encrypted

ep

Encrypted parameter

Can only be used in combination with an integration type (p)

All of the following parameters in encrypted form. The passphrase must be defined in DocuWare Administration.

Yes

ns

Noise

Ensures that the result of the encryption is never the same, i.e. the cipher text is always different. To ensure this, noise should always be inserted at the beginning of the parameter string.

Yes

p

Elements to be integrated:

V = Viewer only

RLV = result list and Viewer

D = Download (Plugin)

SRLV = Search dialog, Result List and Viewer

DH = Version history (document history)

IND = Index Dialog (Info Dialog)

WFTL = Workflow Task List

WFST = Workflow Single Task

SWT = Send Request (Simple Workflow Task)

SWO = Sent Requests (Simple Workflow Owner)

B = document tray
DL = Document Relation (document link)

Yes

SRLV: a search dialog must be defined in the URL

SLRV: The results of a fulltext search will not be highlighted with colour in the DocuWare viewer.

DH requires the "Enable version management" option enabled for the file cabinet in which the particular documents are located

For WFTL, WFST, SWT and SWO the module Workflow Manager is required

A result list with a folder structure is not supported

Yes

fc

fc = file cabinet ID

lc

DocuWare Login

All existing DocuWare user logins; login must be Base64 URL-encoded

Yes

Yes

lct

Token for DocuWare login

If a login credential token is stored on the Authentication Server, the user can log in to Web Client with a GUID; entering a password is not required. A login credential token can be generated by using DocuWare Platform Service and must be encrypted

rl

Result list

Only required if no search dialog is defined in the URL

Required for integration info dialog

All GUIDs of result lists

Yes

q

Query

Only required if no search dialog is defined in the URL

Any valid queries in UTF-8 format; queries must be Base64 URL-encoded

For searching in fulltext mode, the "DocuWare Fulltext" field name must be used, e.g.

[DocuWareFulltext] LIKE "*EINSTEIN*"

Yes

Yes

did

Doc ID

Required if no query (via task list or parameter) and no search dialog is defined; useful if you want to display a specific document

Required if DH (document history) is selected as an integration. Then the DocID denotes the document for which all versions are to be shown.

All existing DocIDs of the file cabinet or in the GUID of the result list in the URL

dv

specifies field values for Search dialog, Result List and Viewer (SRLV)

In a search dialog, specify certain field entries so that the search is already partly predefined.

Yes

displayOneDoc

shows the document directly in the case of a unique hit

If only one document is found, this is shown directly in the Viewer in a DH integration or RL instead of in a list first.

dt

Download type

Not required: If "D" is defined for the integration, "plugin" will be used by default as the download type; only required if "Download" should be defined as the type

Download

Yes

docLink

ID of the document relation

yes for the document type document link

Yes

bid

ID of the document tray

yes

ID of the document tray

Yes

sed

Search dialog

Required if users are to be given the option to run searches; in which case the query will not be defined in the definition of a task list or by a parameter in the URL

All GUIDs of search dialogs which the user can access

Yes

waitDocContent

Wait for document content

Not required. Default value is "true"

For "index dialog with viewer": With "true" a database record is stored not until before it is assigned to a document. With "false" the database record is stored as soon as it is created. The document can be added later.

wiid

Workflow instance ID

Required when the integration type Workflow task is selected

Yes

wid

Workflow ID

Required for integration type Workflow Task or Workflow Task List

Yes

wr

Workflow Role

d = designer

c = controller

Required for "Workflow Task List"

Yes

wtid

Workflow Task ID

Required for integration type "Send Request"

vf

Valid from

Option: Define a validity period for the URL; they can be set individually or together; if e.g. only ‘vf’ is set, the URL will never expire after the ‘vf' date.

Format in accordance with ISO 8601: "yyyy-MM-ddThh:mm:ss.fffffffzz"

"yyyy" = year

"MM" = month

"DD" = day

"hh" = hour

"mm" = minutes

"ss" = seconds

"fffffff" = fractions of a second

"zz" = time zone or UTC offset (e.g. "Z" for GMT, "+01" for Berlin)

Any part can be left out, working from right to left. If "zz" is missing, local time will be used, yyyy-MM-dd defines a date without a time.

:,T,-,. are merely separators

Yes

vu

Valid to

Yes

The parameters must be written with lower-case letters. Exception: by contrast, the values for the p parameter (e.g. V for Viewer integration) must be written in upper case.
The ep, ns, vf, vu parameters are only used in the case of encryption (see section Automatic Login to Web Client via URL).

Base64 URL Encoding

Values must be encoded for the "lc" and "q" URL parameters, since complex data must be encoded before it can be used in a valid URL. DocuWare uses base64 URL encoding. Since the characters "+" and "/" may not be used in a URL, they must be converted to "-" and "_". You can find detailed specifications for this in the RFC 4648 document, section 5 (http://tools.ietf.org/html/rfc4648#section-5).

By way of example, the code in PHP looks like this:

 function base64url_encode($plainText)
    {
        $base64 = base64_encode($plainText);
        $base64url = strtr($base64, '+/', '-_');
        return ($base64url);   
    }

Please note with strings containing inverted commas (see section Examples, e.g. [COMPANY]="Peters Engineering") that the inverted commas can vary depending on which editor you are using and can therefore also have different Base64 encoding. This will not affect the functioning of the URL.

In addition DocuWare removes the trailing ‘=’ characters and adds 0, 1 or 2 depending on characters removed. Implementation uses the .NET function "HttpServerUtility.UrlTokenEncode", find more information on the Microsoft website.

Parameter: further information

Encoded DocuWare login details

The login must consist of a UTF-8 character string encoded as Base64 URL. The unencoded character string looks like this:

User=<username>\nPwd=<password> (\n indicates a new line)

If you want to encode the user login as administrator and the password as admin, you enter it like this:

User=administrator\nPwd=admin

You encode this string. The result is:

VXNlcj1hZG1pbmlzdHJhdG9yXG5Qd2Q9YWRtaW4=.

This is the value you use for the "lc" parameter.

Query Parameter

The query must consist of a UTF-8 character string encoded as Base64 URL.

The unencoded character string looks like this:

[Name of a field in the database]<any number of WhiteSpaces><relational operator><any number of WhiteSpaces>"<search criteria for the field type of DocuWare field>"

e.g.

[COMPANY]="Peters Engineering"

[CONTACT] LIKE „Wi*"

Please note that the field names must be identical to their names in the database; note too that they are case-sensitive.

If the query contains numerals, the query works in the same way as for letters, e.g.

[RECORDNUMBER]="12345"

For a decimal set a period or a comma as separator e.g. "123,45".

If the query contains a date query, the date information must be entered in a non-language specific format, "YYYY-MM-DD", so that the query will always work correctly. For a date with time use the format YYYY-MM-DD HH:mm:ss.

If the query contains one or more quotation marks, a backslash must be placed in front of the quotation mark, in order to remove the meta-meaning of the quotation marks. Example:

[SUBJECT]="So-called \"Web 2.0\""

Possible relational operators are:

<=, >=, <, >, = and LIKE; where LIKE is only valid for text fields. If the LIKE operator is used, the search criterion must contain at least one * (asterisk).

Simple search expressions can be combined into more complex search queries using logical operators, e.g.:

[COMPANY]="Peters Engineering" AND [STATUS]="Valid"

Possible logical operators are:

AND, OR, NOT.

Note that there must always be at least one space before and after each logical operator. This also applies to the LIKE operator.

Encode each valid search query with Base64 encoding. Example [COMPANY]="Peters Engineering" then becomes:

WW0NPTVBBTlldPSJQZXRlcnMgRW5naW5lZXJpbmci.

Query with numeric fields

Please enter decimal points if you use decimal values in numeric fields. With a decimal point the query is culture independent an can be used with different culture settings.

Parameter “dv”

With the dv parameter you can specify individual or several field values for an integration of the search dialog, result list and viewer (SLRV) types. This means that these fields in the search dialog are already filled in. The user can delete or change these field entries if necessary.

Nomenclature

The whole string must be Base64 URL-encoded. The field values must be in the following format:

"[FieldName1]=fieldValue1&[FieldName2]=fieldValue2"

The database name of the field should be entered as the field name.

Example: "[COMPANY]=Peters Engineering&[CONTACT]=SANDERS"

In a numeric or data field, if one of the "From" or "To" fields - or both - are to be filled in, these fields are separated with ;.

Examples:

[NUMERIC_FIELD]=1;5 both "from" and "to" are also filled in

[NUMERIC_FIELD]=;5 only fills the "to" value

[NUMERIC_FIELD]=1 only fills the "from" value

In KEYWORD fields, a list is required where entries are also separated with a semicolon ;.

If the dv parameter defines a date query, the date information must be entered in a non-language specific format, "YYYY-MM-DD", so that the query will always work correctly.