How to send output file or folder to a specific location

Post Reply
ash-20
Newbie
Posts: 6
Joined: Sat Aug 26, 2023 5:00 pm

How to send output file or folder to a specific location

Post by ash-20 »

Hi All,

We were able to inject a file or folder from a dynamic path (using metadata value), is there any way that I can do the reverse of this by sending an output file or folder to a specific location (using metadata value)?

Thank you
User avatar
billy.olvestad
Member
Posts: 61
Joined: Mon Nov 19, 2018 10:08 pm
Location: Sweden
Contact:

Re: How to send output file or folder to a specific location

Post by billy.olvestad »

I have also tried to do this, but found no way to send output files to a complete path from metadata.

What I found though was that if all the paths lead to the same main folder on a network share or local drive, you can set that folder as the "root" folder on "Archive hierarchy", and then add "Set hierarchy path" before that, and get the rest of the path with subfolders from metadata.

I would sure like a way to send files to a complete path from metadata though, if that's possible.
User avatar
magnussandstrom
Advanced member
Posts: 512
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Re: How to send output file or folder to a specific location

Post by magnussandstrom »

If Set hierarchy and Archive hierarchy doesn't work for your use case, you can do this instead:

Using Run Command. The URL could be any variable that you like. This have also the benefit that the output path doesn't have to be online for you to save and run the flow.

Command (for easy copy/paste): copy "%%InputFilePath%%" "\\myserver\subfolder\[Job.Name]"

send_flow.png
send_flow.png (167.01 KiB) Viewed 6183 times
sander
Advanced member
Posts: 309
Joined: Wed Oct 01, 2014 8:58 am
Location: Den Bosch

Re: How to send output file or folder to a specific location

Post by sander »

I use the Store it app for this case. I have a couple of Switch servers at different locations, with the same flows, and don't use static paths in flows. Instead I set the path in an xml and pick that up as metadata.

Since 'Store it' required a Hierarchy segment I split the path and feed it like this:
store_it.png
store_it.png (82.16 KiB) Viewed 6160 times
User avatar
billy.olvestad
Member
Posts: 61
Joined: Mon Nov 19, 2018 10:08 pm
Location: Sweden
Contact:

Re: How to send output file or folder to a specific location

Post by billy.olvestad »

sander wrote: Wed Jul 03, 2024 3:35 pm I use the Store it app for this case. I have a couple of Switch servers at different locations, with the same flows, and don't use static paths in flows. Instead I set the path in an xml and pick that up as metadata.

Since 'Store it' required a Hierarchy segment I split the path and feed it like this:
store_it.png
Seems like this app will come in very handy. Thanks for the tip.
Post Reply