• Update index fields via .NET API

    PLEASE IGNORE THE QUESTION - I NOTICED THAT I CAN UPDATE OTHER FIELDS, JUST NOT THE ONE I WAS TRYING TO UPDATE...

    Hi,

    I'm trying to update index fields for an archived document using the .NET API. Following the code in the developer documentation I'm doing the following:

    Connect to DocuWare

    Get the organization and store

    Search for the document by ID

    Retrieve the document

    Then I execute th efollowing code that assembles the Fields from a dictionary of key/value pairs, which contain an existing field:

    Document doc = queryResult.Items[0].GetDocumentFromSelfRelation();
    UpdateIndexFieldsInfo ufi = new UpdateIndexFieldsInfo()
    {
      Field = (from kvp in request.UpdatedIndexFields select DocumentIndexField.Create(kvp.Key, kvp.Value.ToString())).ToList()
    };
    DocumentIndexFields newFields = doc.PutToFieldsRelationForDocumentIndexFields(ufi);

    There is no error when I execute this code, but the fields are not updated either.

    Is it possible at all to update the index fields of an already archived document?

    Regards

    Thorsten