I have code (C#) that pushes documents into laserfiche, and tries to keep track of the document using its id.
The problem I am running into has to do with the recycle bin.
1. If a user publishes a file from my code.
2. Manually deletes the file using Laserfiche UI.
3. Updates the file in my system and them republishes it to laserfiche.
In step 3 if I just do a create document with the requested path, it finds the document in the recycle bin and references that, and then updates the file in the recycle bin, not what I want cause then the user has to always check the recycle bin.
How do i detect that the file/entity is in the recycle bin?
This way I can either purge it from the recycle bin so that the republish code just creates a new document instead of finding the old one, or restore it so it can be overwritten in the correct location.
Thanks