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

Question

Question

In workflow when moving document, replace instead of renaming it.

asked on March 19, 2021

Is there a way in a workflow to replace a document you are moving that has the same name instead of renaming without writing more steps to see if it already exists?  I know in the client you can change a setting to prompt what to do with conflicts.  

0 0

Replies

replied on March 21, 2021

This may not be the solution you are looking for but you can enable Version Control at the parent folder level, which will ensure any naming conflicts within the folder are appended as a new version of the same file instead.

There is a script you can use in Workflow to enable version control on the folder before you route your file.

https://answers.laserfiche.com/questions/110492/How-to-create-a-Folder-that-implements-Version-Control-in-Workflow#110509

1 0
replied on March 22, 2021

The other option is to do a find entry and then a conditional sequence to delete original if it exists and then do the move.

1 0
replied on March 22, 2021

Thanks Bert.  That's essentially what I did.  I set it up as its own workflow that I can pass an entry and a path into so I can reuse it in multiple solutions.

0 0
replied on March 19, 2021

I'm sure you could do it with a scripting activity, but with basic Workflow activities for Move Entry and Route Entry to Folder, they are just not set-up to have the options to choose to override a document.

0 0
replied on March 19, 2021

There isn't a way to do this with Workflow; on a naming conflict, it will always append a number to the end of the name.

The settings you're referring to in the LF Client also only apply to new documents being imported; it has the same functionality when moving an existing document from one folder to another (it will prompt you to change the name or append a number).

To accomplish your task, you will need to build extra logic into your Workflow.

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

Sign in to reply to this post.