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

Question

Question

Set volume on folders with no volume assigned

asked on September 16, 2019

We have a repository that dates back to LF 7. We're finally getting into Forms and Workflow and using LF more as intended. I'm running into issues where there's thousands of folders that were created prior to LF 8 that have no volume assigned. As a result, sub-folders also have no volume assigned and can't use parent folder's volume either.

Is there a way to assign a default volume to all these folders in bulk? I'm not feeling a lot enthusiasm about setting it manually on tens of thousands of folders....

0 0

Replies

replied on September 17, 2019

You could use the SDK (as a separate app or from Workflow). EntryInfo.MigrateToAsync will migrate a document to a new volume or set the default volume on a folder. It takes the volume name and entry depth as parameters. Entry depth can be 0 (current entry), 1 (current entry and direct children) or 2 (current entry and all its children). In this case, you'd want to go through all folders, check the ones without a default volume (using FolderInfo) and then set it (using 0 as entry depth since you're not trying to migrate the documents already there).

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

Sign in to reply to this post.