Show / Hide Table of Contents

    Download

    Creates a direct download link for a document.

    Document ID

    The document ID will be used to filter out the correct document.

    Following information needed:

    • Server address
    • Organization ID
    • File Cabinet ID
    • Document ID

    How to get IDs

    Example File Cabinet

    var server = @"serveraddress";
    string orgGuid = "OrgGuid";
    var serverUrl = $"https://{server}/DocuWare/Platform/WebClient";
    
    DWIntegrationInfo dwInfo = new DWIntegrationInfo(serverUrl, orgGuid, false);
    
    var integrationType = IntegrationType.Download;
    
    var dwParam = new DWIntegrationUrlParameters(integrationType)
    {
        FileCabinetGuid = Guid.Parse("00000000-0000-0000-0000-000000000000"),
        DocId = "1",
        Culture = new CultureInfo("en-En"),
        DownloadType = DownloadType.Download
    };
    
    var dwUrl = new DWIntegrationUrl(dwInfo, dwParam);
    
    var url = dwUrl.Url;
    
    //Result https://serveraddress:443/DocuWare/Platform/WebClient/ORGID/Integration?culture=en-EN&p=D&fc=00000000-0000-0000-0000-000000000000&did=1&dt=Download
    

    Example Result List

    var server = @"serveraddress";
    string orgGuid = "OrgGuid";
    var serverUrl = $"https://{server}/DocuWare/Platform/WebClient";
    
    DWIntegrationInfo dwInfo = new DWIntegrationInfo(serverUrl, orgGuid, false);
    
    var integrationType = IntegrationType.Download;
    
    var dwParam = new DWIntegrationUrlParameters(integrationType)
    {
        ResultListGuid = Guid.Parse("00000000-0000-0000-0000-000000000000"),
        DocId = "1",
        Culture = new CultureInfo("en-En"),
        DownloadType = DownloadType.Download
    };
    
    var dwUrl = new DWIntegrationUrl(dwInfo, dwParam);
    
    var url = dwUrl.Url;
    
    //Result https://serveraddress:443/DocuWare/Platform/WebClient/ORGID/Integration?culture=en-EN&p=D&rl=00000000-0000-0000-0000-000000000000&did=1&dt=Download
    

    Query

    Use a query to determine a document for download.

    Note

    Only the first result will be returned. To prevent false downloads create a query that will always return a single document!

    The Query can be build with index fields marked with square brackets [ ] and the following operators:

    Comparison operators:

    • = equals exactly the value
    • LIKE can use asterisk* wildcard to complete the comparison

    Logic Operators:

    • OR comparison A or comparison B is valid
    • AND comparison A and comparison B is valid

    Following information needed:

    • Server address
    • Organization ID
    • File Cabinet ID
    • Query

    How to get IDs

    Example File Cabinet

    var server = @"serveraddress";
    string orgGuid = "OrgGuid";
    var serverUrl = $"https://{server}/DocuWare/Platform/WebClient";
    
    DWIntegrationInfo dwInfo = new DWIntegrationInfo(serverUrl, orgGuid, false);
    
    var integrationType = IntegrationType.Download;
    
    var dwParam = new DWIntegrationUrlParameters(integrationType)
    {
        FileCabinetGuid = Guid.Parse("00000000-0000-0000-0000-000000000000"),
        Culture = new CultureInfo("en-En"),
        DownloadType = DownloadType.Download
    };
    
    dwParam.Query = @"[DocuWareFulltext] LIKE ""*Invoice 123*""AND [COMPANY] = ""Peters Engineering"" AND [Status] = ""done""";
    
    var dwUrl = new DWIntegrationUrl(dwInfo, dwParam);
    
    //Result https://serveraddress:443/DocuWare/Platform/WebClient/ORGID/Integration?culture=en-EN&p=D&fc=00000000-0000-0000-0000-000000000000&q=W0RvY3VXYXJlRnVsbHRleHRdIExJS0UgIipJbnZvaWNlIDEyMyoiQU5EIFtDT01QQU5ZXSA9ICJQZXRlcnMgRW5naW5lZXJpbmciIEFORCBbU3RhdHVzXSA9ICJkb25lIg2&dt=Download
    

    Example Result List

    var server = @"serveraddress";
    string orgGuid = "OrgGuid";
    var serverUrl = $"https://{server}/DocuWare/Platform/WebClient";
    
    DWIntegrationInfo dwInfo = new DWIntegrationInfo(serverUrl, orgGuid, false);
    
    var integrationType = IntegrationType.Download;
    
    var dwParam = new DWIntegrationUrlParameters(integrationType)
    {
        ResultListGuid = Guid.Parse("00000000-0000-0000-0000-000000000000"),
        Culture = new CultureInfo("en-En"),
        DownloadType = DownloadType.Download
    };
    
    dwParam.Query = @"[DocuWareFulltext] LIKE ""*Invoice 123*""AND [COMPANY] = ""Peters Engineering"" AND [Status] = ""done""";
    
    var dwUrl = new DWIntegrationUrl(dwInfo, dwParam);
    
    var url = dwUrl.Url;
    
    //Result https://serveraddress:443/DocuWare/Platform/WebClient/ORGID/Integration?culture=en-EN&p=D&rl=00000000-0000-0000-0000-000000000000&q=W0RvY3VXYXJlRnVsbHRleHRdIExJS0UgIipJbnZvaWNlIDEyMyoiQU5EIFtDT01QQU5ZXSA9ICJQZXRlcnMgRW5naW5lZXJpbmciIEFORCBbU3RhdHVzXSA9ICJkb25lIg2&dt=Download
    
    About Us Contact Imprint Terms Data privacy
    © 2024 DocuWare Corporation powered by DocFX Back to top