Icon

Archive old records from CSV files

Demo workflow for "archiving" old records contained in CSV files in a folder.

For convenience, this workflow utilises some components for performing data setup. It also uses a convenience component to get the file name from the path "Path to Extracted File Name Parts".

Annotations and comments
  • Sample Data setup
  • Read current file
  • write to "current"
  • write to "archive"
  • Split rows
  • Split Columns
  • Attempt to give types to columns
  • remove columns named <empty_.*
  • Rename Columns
  • Required as Auto Type Cast produces legacy date&time for date data
  • Remove first row
  • Make it pretty
  • treat everything as a string as otherwise we end up with "unknown" column type if there are different data typess involved
  • Get column names lookup
  • read workflow data folder (for demo)
  • takbb-opener-enabled
  • takbb-workflow-data-create
  • Request to create "data" folder?
  • Collect Allowed OutputNames
  • Create Data folder
  • Collect workflow context information
  • Gets absolute path to location. If "enabled" is set on config, open's that location in associated application
  • Define an outputfile string flow variable relative relative to workflow
  • takbb-location-type
  • takbb-opener-location
  • takbb-flowvar
  • Current records to top archived to bottom
  • define current filename
  • define archive filename
  • output file names as path variables
  • define path variables
  • Loop through the files
  • define output folder names and cutoff date
  • repeat

Nodes

Extensions

Links