复制到文件共享时将元数据转换为文件夹 [英] Convert Meta Data to Folders When Copying to File Share

查看:87
本文介绍了复制到文件共享时将元数据转换为文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在SharePoint 2013中有一个文档库,其中文档按元数据分为两级。 例如:

We have a document library in SharePoint 2013 where the documents are grouped two levels deep by metadata.  For example:

公司文件(文档库名称)

     部门(级别1的名称)

          部门
(级别2的名称)

               文件1

              文档2

Company Documents (Name of Document library)
     Division (name of level 1)
          Department (name of level 2)
               Document 1
               Document 2

此库中的文档需要每年导出到州....但它需要在文件夹中(blech!)。 为了做到这一点,我们需要SharePoint中的元数据成为 文件夹。 将有13个部门。每个
部门将包含5-12个部门文件夹。 每个部门文件夹将包含大约3-5个文档。

The documents in this library need to be exported annually to the state ....but it needs to be in folders (blech!). In order to do this, we need the metadata in SharePoint to become the folders. There would be 13 Divisions. Each division would contain anywhere from 5-12 Department folders.  Each department folder would contain approximately 3-5 documents.

除了在文件共享上手动创建所有文件夹之外,有没有办法做到这一点? 理想情况下,我们可以运行一个脚本来从元数据创建文件夹,并将文档移动到相应的文件夹中,但我感觉
要求太多。 如果存在这样的事情,我们可以每年消除文件共享的内容并根据需要重新运行脚本,因为SharePoint将始终是我们使用的源。

Is there any way to do this other than manually creating all the folders on the file share?  Ideally there would be a script we could run to create folders from the metadata and have the documents move into the appropriate folder but I have a feeling that's asking too much.  If such a thing does exist, we could wipe out the contents of the file share annually and rerun the script as needed since SharePoint will always be the source we work with.

推荐答案

嗨mshehu。

Hi mshehu.

我认为你已达到目标:PowerShell脚本可能是一个很好的解决方案,因为它将读取所有元数据(列)文档库中,在文件共享中创建相应的文件夹,然后相应地继续复制文档(提供
,您已经创建了一种方法,可以将每个元数据正确映射到一个文件夹,也许是一个简单的XML文件)。

I think you've hit the target: a PowerShell script could be a good solution, since it will read all the metadata (columns) of the document library, create the corresponding folders in the file share and then proceed copying the documents accordingly (provided that you've created a way to correctly map each metadata to a folder, maybe a simple XML file).

再见


这篇关于复制到文件共享时将元数据转换为文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆