Community

upload from hot folder Answered

dear all,

when i am drop one pdf file into the hot folder location then abbyy upload those file automatically and create by default batch name like (Batch HF_ID14554) . how could  i create batch name as my recruitment file name EXAMPLE  ( my file name like "QCV00000000001" batch name must be like "QCV00000000001")

Was this article helpful?

0 out of 0 found this helpful

Comments

14 comments

  • Avatar
    Ekaterina

    Hello,

    You may use the “after batch created” event in the Event Handler tab in the Project properties to rename the created batch as desired.

    0
  • Avatar
    Shams Shahriar Sharif

    hello,

    can you told me please which type of script (VBscript, Javascript, C#.net or Others) i will use and can you send me a example of script how could i write. 

    0
  • Avatar
    Ekaterina

    Hello,

    You may use any supported language but you should write all your scripts in one language only.

    To write your script you should use the “Name” property of the IBatch object. You may see more details in this article: Appendix > Using scripts in ABBYY FlexiCapture > Scripts for customizing processing stages > Objects > IBatch

    You may see the code samples here: Appendix > Using scripts in ABBYY FlexiCapture > Scripts for customizing processing stages > Sample scripts > Sample scripts for creating custom rules

    0
  • Avatar
    Shams Shahriar Sharif

    Hi,

    i am facing same type of problem. there have no batch create scripts.I need batch name as like my file name when upload from hot folder 

    please give me a solution urgently.

    0
  • Avatar
    Ekaterina

    Hello,

    In the frame of CaptureDoc resource, we do not send custom code samples. For this purpose, you may contact your regional support.

    0
  • Avatar
    Andrey

    Hi, Ekaterina.

    Can you give direction how I can reach filename from IBatch in "After batch created" script? I could not find.

    0
  • Avatar
    Andrey

    Found solution:

    Create handler:

    https://infinit.io/_/3fUAqqV

    With script:

    https://infinit.io/_/XRHErEa

     

    It will work only if you create batch from one file. Otherwise every page will replace the batch name, and last added page will defile the name.

    0
  • Avatar
    Ekaterina

    Hello Andrey,

    Because the FlexiCapture program allows to combine different files to one document, you should take only one file name for renaming. For example, take the first file of the first document. For doing this you may create the new Scripting Stage in the Advanced Workflow (note that you need to choose the batch processing type) and use the following construction:

    if (Documents.Count > 0)

    {

    string filename = Documents[0].Pages[0].ImageSourceFileSubPath.ToString();

    Batch.Name = // create replace string based on filename here

    }

    0
  • Avatar
    Shams Shahriar Sharif

    hello,

    how could i CHANGE THE BATCH REGISTRATION PARAMETER WHEN I UPLOAD A FILE FROM HOT FOLDER AUTOMATICALLY .

     

    0
  • Avatar
    Ekaterina

    Hello,

    Batch registration parameters can be accessed and modified by IBatch.Properties.Set/Get methods, please see the description here: Application Programming Interface (API) > References > Data Types > Batch 

    0
  • Avatar
    KofiB

    Hello Ekateriana,

     

    Can you please share a sample script on extracting registration parameters like EmailSender from the batch. The sources you referenced are not clear enough and it will be helpful if you could just share a sample

    0
  • Avatar
    Ekaterina

    Hello,

    IBatch: : Properties.Set(string "parameter name") - to create a named parameter

    string IBatch: : Properties.Get(string "parameter name") - to read a named parameter.

     

    Here is the excerpt from the ABBYY FC11 Developer's Help about message header details:

    //-----------------

    Storing basic message header details in the registration parameters:

     

    When you import images from an e-mail folder using the MAPI or POP3 server protocols, information about the message will be automatically added to the registration parameters of the batch you are creating. The following parameters are added: 

    • fc_Predefined:EmailSubject 

    The message's subject.

    • fc_Predefined:EmailSender 

    The message's name.

    • fc_Predefined:EmailAddressee 

    The message's name.

    • fc_Predefined:EmailDate 

    The date and time when the message was received.

     

     Note: If you don't want information about the message to be added to the batch's registration parameters, set the following registry key: 

     

    [HKEY_CURRENT_USER\Software\ABBYY\FlexiCapture\11.0\Controller] "UseHotFolderSpecialParameters"="false". 

    //-----------------

    (The "Registration Parameters" article)

    0
  • Avatar
    Sunil

    Hi Ekaterina,

    How to display the Recognized Vendor Name in place of Batch Name?

    0
  • Avatar
    Ekaterina
    0

Please sign in to leave a comment.