Skip to main content
Question

Dynamic file names for external batch file

  • March 20, 2023
  • 1 reply
  • 139 views

chrisbrigg
Sidekick (Customer)
Forum|alt.badge.img+4

Hello,

Is it possible to set up a Batch external file job to handle dynamic file names?

 

 

I tried putting an asterisk (*) at the end of the file name within the External File Template but that produces an error saying the file cannot be found.
 

 

1 reply

Jens
Hero (Employee)
Forum|alt.badge.img+10
  • Hero (Employee)
  • 123 replies
  • March 22, 2023

Hi @chrisbrigg 

no, this is only possible with a customization/modification.

Without a customization/modification you can think about using the migration tool executing this External File assistant and updating this file name automatically before the needed method/procedure for this External File Assistant will be executed.

The migration tool can handle dynamic file names with a workaround. You need at least 2 migration jobs. Only as an idea and the migration jobs will not migrate data in this case :

  1. 1st MIGRATE_SOURCE_DATA job who is reading the content of a directory and which is putting the file_name into the second migration job (yes, a migration job can update another migration job)
  2. 2nd MIGRATE_SOURCE_DATA job which will execute the method of your external file assistant incl. the file_name of the first migration job

/Jens


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings