You are viewing limited content. For full access, please sign in.

Question

Question

Is file recycled

asked on April 30, 2019

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

0 0

Replies

replied on May 7, 2019

Something isn't right here. If the document is in the recycle bin, any attempt to modify/retrieve it should fail with an "entry deleted" error. Are your users deleting the entire document, or just a portion of it such as the electronic file or LF pages?

0 0
replied on May 8, 2019 Show version history

Hi Robert,

I have a feeling that in my testing I was only deleting the electronic file, not the entity. This may have been my problem.

This has not been deployed to production yet, but I want to try to handle all the weird scenarios that a user might try.

I was getting the duplicate entity error, not entity deleted error.

Thanks

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.