Community

Get batch for a filename

Hi.
Is it possible to use APIs to get the batch ID where a file is processing or was processed?
I searched in the API help file but I did not find anything regarding this.

Thank you very much!
Bye.

Was this article helpful?

0 out of 0 found this helpful

Comments

6 comments

  • Avatar
    Sushi
    Decibel83,

    If you are using this for file naming, it should be easy to setup. Since you mention API, I'm going to assume you are using the a custom script or something. In that case, you do have access to Field value so what you can do is use a "Service Field" Basically add a service field to your DocDef using the Batch Name. Now you have a field with your Batch Name value.
    0
  • Avatar
    Mattia Martinello
    Decibel83, If you are using this for file naming, it should be easy to setup. Since you mention API, I'm going to assume you are using the a custom script or something. In that case, you do have access to Field value so what you can do is use a "Service Field" Basically add a service field to your DocDef using the Batch Name. Now you have a field with your Batch Name value.


    Hi Sushi.
    Thank you very much for your answer.
    I know this, but this would work only when the document will be exported.
    I need to know the batch ID and its status even when it's running, before the export, because FlexiCapture is part of our workflow and our application needs to know the status of every inputed document, even when it's running in FlexiCapture.
    Is it possible to to this?
    Thank you very much!
    0
  • Avatar
    Ivy
    maybe you can add a batch parameter like FileName. At a batch processing stage retrieve the file name from a service field and insert it in the parameter.
    0
  • Avatar
    Feri Santosa


    Hi Decibel,

    Does it means you want to create your own batch monitoring?
    0
  • Avatar
    Mattia Martinello
    Hi Decibel, Does it means you want to create your own batch monitoring?


    Yes, I need to monitor batches to understand every exceptions that could happens.
    0
  • Avatar
    Sushi
    Technically the Admin and Monitoring console already does this for you but it should like you want to create your own program to monitor the batches, you will need to access the FlexiCapture database directly, I suggest looking at the Custom Report Help file. It shows all the schema in the DB and their relations.
    0

Please sign in to leave a comment.