Community

Flexicapture Batch documents naming configuration pattern

Every batch has name, for example (Batch HF_ID1000) this name for me looks like a complete waste of characters.  Can I change/configure this naming pattern somewhere?

0

Comments

2 comments

  • Avatar
    Adrian Enders

    I am not sure about changing the default pattern, but you can use a quick script (add a Workflow Stage after scanning, before recognition) to rename the batch after it is imported. Here is an example where we are naming the batch the same as the file name. This is C#. Remember to set a reference to "System" in the .Net References.

     

    using System.IO;

    if (Batch.Documents.Count != 1)

    {

        FCTools.ShowMessage("Non-fatal Error: Expecting 1 document, " + Batch.Documents.Count + " found. Batch will be named by the first document");

    }

    string newName = Path.GetFileNameWithoutExtension(Batch.Documents[0].Pages[0].ImageSource);

    FCTools.ShowMessage("Changing batch name from '" + Batch.Name + "' to '" + newName + "'");

    Batch.Name = newName;

    FCTools.ShowMessage("Batch name successfully changed");
    0
  • Avatar
    ABBYY_User0707

    Is this working???

    0

Please sign in to leave a comment.