Table of Contents

Search Dialog

Creates a link to a prefilled search dialog to make the search more convenient for the user.
The prefilled fields can be changed by the user before the search.

Following information needed:

How to get IDs

var server = @"serveraddress";
string orgGuid = "OrgGuid";
var serverUrl = $"https://{server}/DocuWare/Platform/WebClient";

DWIntegrationInfo dwInfo = new DWIntegrationInfo(serverUrl, orgGuid, false);

var integrationType = IntegrationType.SearchAndResultlistAndViewer;

var dwParam = new DWIntegrationUrlParameters(integrationType)
{
    FileCabinetGuid = Guid.Parse("00000000-0000-0000-0000-000000000000"),
    SearchDialogGuid = Guid.Parse("00000000-0000-0000-0000-000000000000"),
    Culture = new CultureInfo("en-En")
};

//Set DialogValues like "[COMPANY]=Peters Engineering&[CONTACT]=Brian Ford",
dwParam.SetDialogValues(
    new List<DialogFieldValue>{
        new DialogFieldValue {Name = "COMPANY", Values = new[] {"Peters Engineering"}},
        new DialogFieldValue {Name = "CONTACT", Values = new[] {"Brian Ford"}}
    });

var dwUrl = new DWIntegrationUrl(dwInfo, dwParam);

var url = dwUrl.Url;

//Result https://serveraddress:443/DocuWare/Platform/WebClient/ORGID/Integration?culture=en-EN&p=SRLV&fc=00000000-0000-0000-0000-000000000000&sed=00000000-0000-0000-0000-000000000000&dv=W0NPTVBBTlldPVBldGVycyBFbmdpbmVlcmluZyZbQ09OVEFDVF09QnJpYW4gRm9yZA2