检索Sharepoint文档库的子文件夹中的文件名 [英] Retrieve names of files in a subfolder of a Sharepoint document library

查看:64
本文介绍了检索Sharepoint文档库的子文件夹中的文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

< span style ="color:#333333; font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; font-size:14px">我正在尝试制作一个dtsx包从Sharepoint文档库中读取一些Excel文件。这个库里面有一些文件夹。我有
来读取其中一个文件夹中的文件。 我安装了Sharepoint List来自Codeplex的适配器。如何获取我感兴趣的此文件夹中的Excel
文件列表?在Sharepoint List Source中,我只能设置站点URL和列表名称(文档库的名称),但所以我只能获取库中文件夹的名称。

提前谢谢!

推荐答案

您好Robilyn,

Hi Robilyn,

您可以在脚本中编写自定义代码操作Sharepoint库中的文件夹和文件的任务。 

You can write custom code in Script Task to manipulate the folders and files in Sharepoint library. 

请参阅: 

Please see: 

如何使用CSOM从
特定sharepoint文件夹和子文件夹中获取所有文件

如何使用CSOM从/向SharePoint 2013下载/上传文件?

在"脚本任务"中,您需要添加对Microsoft.Sharepoint.Client和Microsoft.Sharepoint.Client.Runtime 

In Script Task you need to add reference to Microsoft.Sharepoint.Client and Microsoft.Sharepoint.Client.Runtime 

如果您有任何疑问,请随时提出。 

If you have any question, feel free to ask. 


这篇关于检索Sharepoint文档库的子文件夹中的文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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