Skip to main content
Question

Document Automation - Create a Learning Instance to Extract File Name

  • November 3, 2025
  • 1 reply
  • 26 views

Forum|alt.badge.img

Newer bot builder here, and I just created a Learning Instance in Document Automation where I can extract First Name, Last Name and Case Number for a document. An output file is created successfully for each file I process. I cannot figure out how to extract the PDF file name into the same output file. Is there a way to do this? I need the file name to be extracted into the same output file so the next step in the process it can match up the proper file with the first name and last name to docket the correct file with it in the case management system. 

1 reply

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • 870 replies
  • November 3, 2025

@Wendy Poth The output file name is the same as the input file name (e.g., Lease document.pdf) but with a GUID at the beginning and .csv at the end (e.g., 95952A92-DA5D-48DD-966D-A39EA1FD7D20_Lease document.csv). 

There are other more difficult ways to find this out if you want to build an automation using the Document Extraction package.

https://docs.automationanywhere.com/bundle/enterprise-v2019/page/da-extraction-package.html