Reusable Subworkflow Zip Multiple Files Dynamically (Compress)
Go to WorkflowDescription
π¦ Zip Multiple Files Dynamically
This template enables you to dynamically bundle multiple files into a ZIP archive. Designed to be used as a Subworkflow, itβs modular, flexible, and easy to integrate into various workflows. The output is a single ZIP file with a name that includes the current date, time, and fileName.
Shoutout:
Code from: Tom (mutedjam)
π€ Who is this for?
This workflow is perfect for:
π Businesses automating file archiving tasks.
π» Developers managing files programmatically.
π Anyone needing a reusable solution for bundling files into ZIP archives.
β What problem is this workflow solving?
Manually zipping multiple files is:
π Time-consuming.
π€ Prone to errors.
This workflow automates the process and, as a Subworkflow, ensures:
β‘ Consistent file archiving across different workflows.
π οΈ Reduced manual effort.
π Streamlined integration into existing automation.
π§ What this workflow does
ποΈ Dynamically collects binary files from the input.
π¦ Bundles them into a single ZIP archive.
π Names the ZIP file with the current date, time, and a customizable fileName.
β
Outputs the ZIP file, ready for storage or further processing.
βοΈ Setup
π Add this Subworkflow to your existing workflows.
π₯ Pass the binary files as input to the Subworkflow.
βΆοΈ Call the Subworkflow to generate a ZIP file.
π οΈ How to customize this workflow to your needs
π File Sources**: Adjust the input nodes in your parent workflow to connect to your preferred file sources.
π File Naming**: Customize the logic for the output fileName in the Subworkflow.
π Additional Use Cases**: Use this Subworkflow in various scenarios, such as:
βοΈ Sending ZIP files via email.
βοΈ Uploading ZIP files to cloud storage.
π Triggering further automation.
π Why use this as a Subworkflow?
Instead of building a fixed ZIP functionality for every workflow, this template offers a reusable solution that can be integrated into many different workflows effortlessly. Save time and ensure consistency across your automation projects! π‘