How to get the original name of the file that was uploaded

Question

Is there a log or another way to get the original name of the file that was uploaded to check during using Web Stations.

Answer

It is possible to add an additional script stage that will access the documents inside the batch and log the files' names in the event logs.

To implement such a solution, please proceed with the following steps:

  1. In the Advanced Workflow create a script stage after the Scanning stage. It needs to be of Automatic type.
  2. Check Wait for all documents of a batch option on the General tab
  3. On the Script tab, select Batch processing as a Type
  4. Click Edit script....
  5. Paste the following script:
if (Batch.Documents.Count > 0)
{
for(int i = 0; i< Batch.Documents.Count; i++){
FCTools.ShowMessage("File name:" + Batch.Documents[i].Pages[0].ImageSourceFileSubPath);
}
}

6. Save workflow and send the documents from Scanning Station

The results will appear in the Event Log on the A&M Console:

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.