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

Question

Question

Request: Delete Entry Activity - Only Delete Empty Folders Warning Not Reported

asked on June 13, 2016 Show version history

I have a bunch of workflows that move documents and then clean up their previous folders if empty.  It is really handy to use the "Only delete empty folders" option in the delete entry activity so that we don't have to verify the folder is empty prior to attempting to delete it.  The downside to this is that is logs a warning that "The folder '...' is not empty" when that was the point of checking the box. It would be nice if we had the option to check a box that it did not report a warning when it was unable to delete a folder because it was not empty.  We have the option to not report an error on some other activities so it'd be great if this one had a similar option as well.  Anyone else find a need for this?

0 0

Replies

replied on June 13, 2016

I get around this by putting the Delete step inside a conditional sequence.  In the beginning of my workflow I do a search in the folder for any documents.  At the end of the workflow I put in a conditional sequence that says if Find Entries step returned zero results, then delete folder.  On the delete folder, I still have it check to only delete empty folders (just in case).  But this has eliminated a bunch of issues for me.

0 0
replied on June 13, 2016

Thanks for the suggestion.  I used to do it that way before they gave us that check box.  In an effort to speed up my workflows, reduce the programming (find activity, conditional activity), and reduce errors (often there are multiple entries trying to clean up the same folders so in the split second between when one WF runs a search a different WF may empty the folder), I have found that relying on that check box is the most efficient & effective way.  I am now just wanting more functionality out of it so that it suppresses the warning as in my application it is functioning as designed.

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

Sign in to reply to this post.