Date Variables can be used in the path, for File Events, in a Trigger Definition in JAMS.
Start with the following:
- Create a Variable with a Date format value. The date format by default is set to MM/DD/YY. You must supply a date as a default value.
- Set the variable using whichever method you choose. Powershell might work best in this case. For example, use the "Set-JAMSVariable" command-let to set the variable, make sure you use the format above.
- When calling the variable, go to the file event trigger and use this example as a guide to the path for the file:
- This will search for a file with the file name MyFile_060713.txt assuming you have your "MyVariableDate" variable definition set to "06/07/13".