Remove files from hierarchy

Post Reply
LasseThid
Advanced member
Posts: 353
Joined: Tue Mar 03, 2015 2:30 pm
Location: Molndal, Sweden

Remove files from hierarchy

Post by LasseThid »

Hi.

I need to create a flow for web orders which will delete the files for a cancelled order.
My thoughts was to pick up the name of the files from the subject of the cancellation mail. Use that to inject the file from the file server and remove it from the file server once injected into the flow, where it would be sent to a recycle bin.
However, I don't know where in the hierarchy the files are. On the file server there are a variable amount of folders whose names start with the delivery date and then contains which shipping method that is to be used.
Does anyone have any ideas on how to solve this?

Thanks in advance
Lasse
Enfocus Switch, Enfocus PitStop Server, Enfocus PDF Review, HP SmartStream& Kodak Prinergy with RBA
Offset 72x102, Offset Large Format, Digital Large Format and Digital print.
jan_suhr
Advanced member
Posts: 586
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Remove files from hierarchy

Post by jan_suhr »

I think it would be better if that webform created a webhook that Switch could use to find the file. And don't your order database know where the file is? This would be a much better approach than using emails.
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
LasseThid
Advanced member
Posts: 353
Joined: Tue Mar 03, 2015 2:30 pm
Location: Molndal, Sweden

Re: Remove files from hierarchy

Post by LasseThid »

Unfortunately there is no database involved in this flow.

The customer uploads pdf files and xml files to our ftp server and a Switch flow will read data from the xml file and place the pdf file and the xml file in the correct folder in the hierarchy.

If the customer for some reason cancels a job we receive an e-mail with that information and the CSR has to manually search the hiearchy and delete the pdf and xml files.

I guess that if I place a copy of the xml files in another folder I could then use that xml file to read the delivery date and shipping method and hence find the files to delete. 8-)
Enfocus Switch, Enfocus PitStop Server, Enfocus PDF Review, HP SmartStream& Kodak Prinergy with RBA
Offset 72x102, Offset Large Format, Digital Large Format and Digital print.
laurentd
Member
Posts: 137
Joined: Wed Mar 13, 2019 2:06 pm

Re: Remove files from hierarchy

Post by laurentd »

Have a look at the inject wildcard app, you can inject files when you only have part of the name and you can scan a hierarchy.
https://www.enfocus.com/en/appstore/pro ... t-wildcard
Laurent De Wilde, Solution Architect @ Enfocus
LasseThid
Advanced member
Posts: 353
Joined: Tue Mar 03, 2015 2:30 pm
Location: Molndal, Sweden

Re: Remove files from hierarchy

Post by LasseThid »

Thanks Laurent.

I will give that a try.
Enfocus Switch, Enfocus PitStop Server, Enfocus PDF Review, HP SmartStream& Kodak Prinergy with RBA
Offset 72x102, Offset Large Format, Digital Large Format and Digital print.
Post Reply