Rich S Posted February 6, 2020 Posted February 6, 2020 Greets, all: I have a script to import the data from an exported Excel file, then it does its thing and exports the data into a .csv file--and it works just fine--but the filename of the source file always differs so I can't hard code that filename into the Specify Data Source option in the Import Records script step. C'est la vie. However, I would like to extract that filename so when the latter part of the import script exports the data as a .csv file, the exported file has the same filename as the source file (but with a different file extension, of course). Is there a way to capture the source filename during the import process--as a variable, I reckon--so I can automate the naming of the output file? Cheers, Rich
comment Posted February 6, 2020 Posted February 6, 2020 21 minutes ago, WF7A said: Is there a way to capture the source filename during the import process No, but you could start the process by inserting the file into a container field. This will allow you to extract the selected file's name. Then have the script export the field's contents to a known location and import from there. 1
Recommended Posts
This topic is 1751 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now