
Sort on file size using script object
This flow uses a Script element that sorts jobs based on their size.
This flow is compatible with:PowerSWITCH.
Information

The Script element in this flow uses a script that provides you with 2 properties:
- Allow files that are: "smaller than" or "bigger than"
- Size (in Kb): enter the size that should be used to make the difference between "small" and "big" files.
In this example flow, the property "Allow files that are" is set to "smaller than" and the property "Size (in Kb)" is set to "500".
This means that all files smaller than 500 KB will go through the success (green) connection and all other files are moved through the fails (red) connection.
Using this flow
- Download the flow and save it on your computer: download flow
- Launch PowerSWITCH
- Use the “Flow > Import…” menu item
- In the dialog that is shown, select the flow file you just saved
The flow now appears in the flow list. You can now examine or customize it to your needs.
