Filename Patterns Reference

Review these guidelines for the design of a file naming pattern in Automation Studio.

You can use filename patterns to set up a file drop automation. These patterns let you designate a naming convention for files dropped into the Enhanced FTP's Import or Triggered_Automations folders tied to an automation. When you add a file to this folder, Automation Studio reads the filename and runs the corresponding automation.

When you set up a filename pattern, select an operator to dictate how Automation Studio parses the filename. The available operators are Contains, Begins With, and Ends With.

Note
Note Don’t include a file extension or wildcards (such as *, %, %%YEAR%%) in the filename pattern.
Example
Example

Use Contains to look for files whose filename includes the filename pattern before the file extension.

For example, if Filename pattern contains AUG14:

  • Files named AUG14import.csv, Update_AUG14.txt, and NewContactsAUG14profileupdates.zip start this automation.
  • Files named AUG_14data.csv, CustomerFiles.AUG14, and DailyJob-Aug-14.txt don’t trigger this automation.
Example
Example

Use Begins With to look for files whose filename starts with the filename pattern.

For example, if Filename pattern begins with AUG14:

  • Files named AUG14import.csv, aug14files.zip, and Aug14098786.txt trigger this automation.
  • Files named 1AUG14data.csv, 120814_AUG14.zip, and _AUG14.txt don’t trigger this automation.
Example
Example

Use Ends With to look for files whose filename ends with the filename pattern before the file extension.

For example, if Filename pattern ends with AUG14:

  • Files named ImportAUG14.csv, aug14_listpull_aug14.zip, and usersAug14.txt trigger this automation.
  • Files named datapullAUG14_01.csv, listinfoAUG14.run.txt, and Aug14_.zip don’t trigger this automation.