Posted Thu, 20 Sep 2018 06:35:18 GMT by Thorsten Dittmar

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

 

Posted Fri, 21 Sep 2018 07:47:00 GMT by Stefan Kinitz Datatronic Software AG DSC

<ignored>

You must be signed in to post in this forum.