Option to specify the folder labels are uploaded to on Dropbox
Currently label files are uploaded to a folder with a 'random' name in Dropbox, meaning auto collection is impossible. If we could specify the folder labels are put into then we would be able to automatically download them and integrate them into our systems for printing via our own admin consoles.
I do understand the folder naming convention. Year, month, day, hour these are all predicteble. Minute is mostly predictable. But we have no way of knowing second and fraction of a second, giving the folder a random name from our perspective.
If we could specify a folder eg "/Results/Labels/" then because we already know what the label file name will be, we could use a simple script to copy the label file from dropbox into our own systems.
Oooh!! I'm liking the looks of Print Assist. It looks like this cuts out a lot of background nonsense. Thanks for the tip. 👍
Yes, you're correct the suffix is actually the original csv name and will be integration dependent, but I wouldn't use anything other than the order number as it's easy to find with a simple pattern match on the timestamp and *should* be unique - once found, the folder can be archived to stop the entries growing. I appreciate everyone's system is different, so as long as any folder name change maintains backwards compatibility then let's have the option.
We don't use the dropbox stored pdf as we use Print Assist (there no need to keep a copy as C&D does that itself), but we do use the despatch report csv to pull the tracking number back into our webshop and the above approach seems to works fine.
The folders are named:
FFFF=Fraction of a second (milliseconds)
Our order number is not used in the folder name.
Page 7 of the manual... https://www.royalmail.com/sites/default/files/How%20to%20use%20Click%20and%20Drop%20On%20Demand.pdf
I understand the reason behind the naming convention. I am not asking for the convention to be changed, I'm simply asking for the option for an alternative.
I already have a script workaround using php glob, but it would be a lot easier if the folder name could be specified in advance.
The benefit of the current folder naming convention is that if you happen to re-generate an order (i.e. with the same order number) due to a problem somewhere (either yours or click n drop) then the next folder can be created successfully without over writing any previous dispatch report. The folder names have a handy .nnnnn suffix where the nnnnn part is your order number - or are you not supplying a unique order number? If you have the capability of scripting, then why not 'list' all the folders and then copy them locally if that's really what you want, then 'move' all the copied folders to a new sub-folder (e.g. 'completed') or just delete them. The next time around, list again and you'll then either find no entries or the new order results?