Page 1 of 1

Archive submitted file into another directory

Posted: Thu Jan 18, 2024 5:34 pm
by jcarden
Hello Everyone!

I am new to switch and I am trying to archive a file into an existing file structure only using a 6 digit job number. I have been thinking about this for a while but really have no idea to start. I know the hierarchy elements will probably play a role, but really have no clue how.

Submitted Filename: 123456-Banner.pdf

This file needs to be archived into an existing folder in another directory using the following hierarchy.

Top Level: 123456-Client Name
Second Level: Approval
Final Print
Previous Job
Supplied (This is where I want to archive the file)
Work Ups

I have no XML from a MIS or anything else I only have the 6 digits from the original file to work with.

If this isn't possible without additional XML that's fine...I just need a jump start on a couple ideas.

Re: Archive submitted file into another directory

Posted: Thu Jan 18, 2024 9:00 pm
by magnussandstrom
I've made a small flow that will do what you want using Scan hierarchy app from the Folder apps bundle. You just need change the path in Scan hierarchy and Archive hierarcy.

Happy Switching!

Send_file_to_job-folder.zip
(19.43 KiB) Downloaded 984 times

Re: Archive submitted file into another directory

Posted: Fri Jan 19, 2024 7:41 pm
by rhd_ole
We do ours similar to what mag posted.

We do not put the job number on the file but rather type or select it when submitting in most cases, then use the job number as private data to drive the job and folder structure and creation. We do have some flows were the number is part of the file name, and we us a segment for the job number or before '-' like mag does.

From there we can use app Create Job Folder and have the top level be the variable of the job number and client name, and then list the hierarchy. Each tab is another level in.
We set the job output line to the folder you want it to go it, in this case 5.
Screenshot 2024-01-19 at 12.38.05 PM copy.jpg
Screenshot 2024-01-19 at 12.38.05 PM copy.jpg (217.08 KiB) Viewed 4127 times
Since the folders already exist, you can just use the top level (job+client)and only the second level folder the file needs to go in, Supplied.

2 folder version:
Screenshot 2024-01-19 at 12.37.47 PM copy.jpg
Screenshot 2024-01-19 at 12.37.47 PM copy.jpg (177.13 KiB) Viewed 4127 times

Re: Archive submitted file into another directory

Posted: Fri Jan 19, 2024 10:40 pm
by jcarden
Thanks everyone for the ideas...I think the problem I am running into now is that we dont have the metadata module as we just have access to switch core.

I will save this post for when we/if we upgrade.

Thanks!

Re: Archive submitted file into another directory

Posted: Fri Jan 19, 2024 11:27 pm
by jan_suhr
You can't live without the Metadata module.