Views:
Question:
How can I upload a data record into DocuWare utilizing the .NET SDK? 

Answer: 
In order to upload data records into DocuWare, the following example can be used as a reference:
 

public Document UploadDataRecordToFileCabinet(FileCabinet fileCabinet) 

        { 

            var indexData = new Document() 

            { 

                Fields = new List<DocumentIndexField>() 

                { 

                    /* Names should be capitalized and are the database names  

                     * of the fields. They do not require DW_ prefixes. 

                     */ 

                    DocumentIndexField.Create("FIELDNAME""Value1"),  

                    DocumentIndexField.Create("FIELDNAME2""Value2"), 

                } 

            }; 

            var uploadedDocument = fileCabinet.UploadDocument(indexData); 

            return uploadedDocument; 

        } 
 

For more on .NET SDK and examples such as the on depicted above, please visit DocuWare Developer Pages.

KBA applicable for both Cloud and On-premise Organizations.

Related Articles (1)

Comments (2)
  • This example is outdated or something? 
    the uploaddocument method uses inputdocument instead of document
    and when doing this I allways get an exception when running the method uploaddocument: 
    Value cannot be null.
    Parameter name: source

    any advice?

     
  • Hi Ward.

    Thank you for your feedback.

    The example is up to date. 
    We'll be happy to help you with this, please have a Support Request created and we'll be able to troubleshoot further.