I built a workflow to pull in all of the .txt files from a specific location and translate the information to an output file format that I need. What I'm looking to do now is the dynamically change the input location for these files each time I run the workflow. For instance, I have files in a location C:\User\Locations\Name\In\*.txt. I want to replace the "Name" portion of that location with a different "Name". The directory path will be exactly the same otherwise. By doing this, it will allow the user to specify different locations before kicking off the workflow. Then the workflow will be able to pull files from the different locations to process. I could just save the workflow multiple times and change the input path each time, but I'm looking to avoid storing multiple versions of the workflow for each slightly different directory "Name."
Any suggestions?
My thought is that I need ot build a macro that allows a user to input an answer to a question (via text box) that replaces that specific section of the directory string. But, I'm at a loss on how to do that. There may also be a better way.