Page 1 of 1

Remove Duplicate Files by Order Number

Posted: Fri Mar 06, 2020 1:27 pm
by Mark Casey
HI Guys

I have two (or maybe 3 or 4) xml files arriving in an Automanaged Folder.

I need to allow only one of the files through the Flow if the Order Number of each file is the same, and the others discarded (this is the first 5 digits of the file name)

Any help would be appreciated :D

Re: Remove Duplicate Files by Order Number

Posted: Wed Jul 08, 2020 1:52 pm
by laurentd
Hi Mark,

Use the Counter - Numberer app https://www.enfocus.com/en/appstore/product/counter
Create a counter for each order number, counter name = [Job.NameProper:Search="\d{5}"]
Sort the jobs on the condition [Job.PrivateData:Key="counter after"] equals 1 -> treat, All other jobs -> discard
 
treat or discard orders.png
treat or discard orders.png (76.79 KiB) Viewed 3132 times