Archive submitted file into another directory

Post Reply
jcarden
Newbie
Posts: 17
Joined: Sun Feb 26, 2023 5:09 am

Archive submitted file into another directory

Post 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.
User avatar
magnussandstrom
Advanced member
Posts: 365
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Re: Archive submitted file into another directory

Post 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 387 times
rhd_ole
Member
Posts: 103
Joined: Mon Jan 24, 2022 5:36 pm

Re: Archive submitted file into another directory

Post 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 998 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 998 times
Color Science & Workflow Automation
jcarden
Newbie
Posts: 17
Joined: Sun Feb 26, 2023 5:09 am

Re: Archive submitted file into another directory

Post 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!
jan_suhr
Advanced member
Posts: 592
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Archive submitted file into another directory

Post by jan_suhr »

You can't live without the Metadata module.
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
Post Reply