This is more of a question than a problem. I've search everything but I'm not able to find the answer.
We are developing a application that leverage the docuware .net api to auto store documents from a Document Tray to a File Cabinet.
But prior to executing the PostToTransferRelationForDocumentsQueryResult(transferInfo) to store the documents; we would like trim the value of an existing field. For some reason when I query the Document Tray then try to extract the existing fields associated to the documents I can only see the System entries and not the pre-defined index values. I supposed it's due to the fact that the document is not yet "Indexed".
Here is a snippet of my code:
FileCabinet selectedDocTray = ((FileCabinet)this.CmbBoxDocTray.SelectedItem).GetFileCabinetFromSelfRelation();
FileCabinet selectedFC = ((FileCabinet)this.CmbBoxFileCab.SelectedItem).GetFileCabinetFromSelfRelation();
var storedialog = ((DialogInfo)this.CmbStoreDgl.SelectedItem).GetDialogFromSelfRelation();
DocumentsQueryResult result = ListAllDocuments(selectedDocTray, int.MaxValue); //Note: the "selectedDocTray" is the source document tray.
var existingFields = result.Items.Fields; //Note: Based on the SDK, this line of code should retrieve all fields from the document (System Entries and Index Fields)
But it's not, we are only getting back all system entries.
If anybody have any insight and would like to share we would greatly appreciate it.