When a Task contains more than one Action, it is possible to pass the data returned by an Action to some subsequent Action. Instead of using fixed / manual values, use Variable Wizard for filling in particular Action parameter field automatically.
Variable Wizard and File / Folder Actions

When an Action is preceded by a File Action, Variable Wizard can automatically provide the following values:
| Available dynamic variables | Description |
| Last destination file | Returns destination filename with full path of last file that was processed by specified Action (e.g. if file is copied to another folder, variable contains file's new name and location). |
| Last source file | Returns source filename with full path of last file that was processed by specified Action (e.g. if file is copied to another folder, variable contains file's initial name and location). |
| List of affected (copied, renamed, etc.) files | Returns the list of destination filenames with full path of all files processed by specified Action (e.g. if upon some event all files in particular folder is copied to another location, variable contains a list of new names and location(s) of files). |
| List of source files | Returns the list of source filenames with full path of all files processed by specified Action. |
| List of source, destination files | Returns a list containing both initial file names with full path and new file names with full path. |
| Number of affected files | Returns a numeric value indicating how many files were processed by a File Action. |
| Action completion status | Returns text value containing completion status (i.e., "completed successfully" or "completed with errors") of specified Action. |
When an Action is preceded by Write to File or Read from File Actions, Variable Wizard can automatically provide the following values:
| Available dynamic variables | Description |
| File content | Returns contents retrieved when reading the file. |
| Number of bytes read / written | Returns numeric value that indicates number of bytes read / written by Write to File or Read from File Actions. |
| Last file | Returns file name with full path used in last execution of Write to File or Read from File Actions. |
Additional notes:
- If file / folder Action is configured to process multiple files by using file masks / wildcards and error occurs, then Last file variable may repeat the name of file on which error occured.
Please do not hesitate to contact our support department with any possible further questions or to solve practical issues connected with Febooti Automation Workshop.
Links