Sharepoint:使用 Web 服务将项目添加到子文件夹的列表中
我有一个具有自定义内容类型的列表,该列表还包含子文件夹
如何使用 Web 服务将项目添加到特定子文件夹中的列表?
I have a list, that has a custom content type, the list also contains subfolders
How can I add an item to the list using web services, in a specific sub folder?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Dim MyQuery As New SPQuery()
MyQuery.Query = Query ' 设置查询
MyQuery.ViewFields = ViewFields ' 设置 ViewFields
MyQuery.RowLimit = 0
MyQuery.ViewAttributes = "BaseViewID=""1"" Scope=""Recursive"""
MyQuery.文件夹 = 文件夹 ' 设置列表的子文件夹
MyQuery.Query = Query ' 设置查询
Dim MyItemCollection As SPListItemCollection = List.GetItems(MyQuery)
Dim MyQuery As New SPQuery()
MyQuery.Query = Query ' Set Query
MyQuery.ViewFields = ViewFields ' Set ViewFields
MyQuery.RowLimit = 0
MyQuery.ViewAttributes = "BaseViewID=""1"" Scope=""Recursive"""
MyQuery.Folder = Folder ' Set subfolder of list
MyQuery.Query = Query ' Set Query
Dim MyItemCollection As SPListItemCollection = List.GetItems(MyQuery)