Flow to catch duplicate files

Post Reply
User avatar
neecerp
Member
Posts: 27
Joined: Tue Jun 05, 2012 9:21 pm

Flow to catch duplicate files

Post by neecerp »

Has anyone set up a flow that would catch duplicate files coming through a folder in Switch?
I need it to catch a file with the same name no matter when it may show up. Whether within 1 minute or 5 days later.
We would like to then send a report via email, which is the easy part.

Any ideas? I was thinking maybe I could use Assemble job somehow, but I do not want to assemble anything.
Zoranj
Member
Posts: 107
Joined: Tue Sep 20, 2016 7:37 pm
Location: Canada

Re: Flow to catch duplicate files

Post by Zoranj »

You could setup database to update with name of each file and check if it exist.
loicaigon
Advanced member
Posts: 361
Joined: Wed Jul 10, 2013 10:22 am

Re: Flow to catch duplicate files

Post by loicaigon »

I second Zoranj. You need to store passed jobs either as a database call maybe writing down some file locally or whatever suits you.
User avatar
neecerp
Member
Posts: 27
Joined: Tue Jun 05, 2012 9:21 pm

Re: Flow to catch duplicate files

Post by neecerp »

What kind of database? I am talking about using Switch flows.
Can you suggest examples?
Zoranj
Member
Posts: 107
Joined: Tue Sep 20, 2016 7:37 pm
Location: Canada

Re: Flow to catch duplicate files

Post by Zoranj »

I have both of these in active use

You setup database in MSSql or some other database.
For this you need database configurator license.
When file passes, you check database if the file name exist, if not you take name of the file and write it to database.
If file exist in database, you do whatever the action you want.

Loic's example would be "cheap" database made out of folder with files.
When file passes, you you use Inject Lite to check if file with name exist, if not inject txt file into folder repository and name it with file name.
If file exist, do whatever action you want.
In this case I am using Inject lite instead of regular Inject since it will not fail when it does not find file.

I hope this helps
flussidicaio
Member
Posts: 21
Joined: Thu May 03, 2018 6:07 pm

Re: Flow to catch duplicate files

Post by flussidicaio »

Hi,
with the scripting module it would be easy.
without you can try with "inject job".
See the attached file
flow.png
flow.png (20.12 KiB) Viewed 8171 times
Post Reply