如何使用Web服务(/_vti_bin/ListData.svc)在sharepoint 2010表单库中检索附件? [英] How to retrieve attachments in sharepoint 2010 form Library using the web service (/_vti_bin/ListData.svc)?

查看:480
本文介绍了如何使用Web服务(/_vti_bin/ListData.svc)在sharepoint 2010表单库中检索附件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Web服务(/_vti_bin/ListData.svc)在sharepoint 2010表单库(InfoPath)中检索附件?


问候,Manoj Prabakar

How to retrieve attachments in sharepoint 2010 Form Library (InfoPath) using the web service (/_vti_bin/ListData.svc)?


Regards, Manoj Prabakar

推荐答案

对于一般列表或库,我们可以使用下面的REST API来检索附件.

For general list or library, we can use the REST API below to retrieve attachments.

http://<sitecollection>/<site>/_vti_bin/ListData.svc/Requests?


select = Attachments&
select=Attachments&


expand =附件
expand=Attachments

如果要在表单库的InfoPath表单中检索附件,作为一种解决方法,我们可以下载InfoPath文件,然后使用C#代码检索附件,或者我们可以创建一个自定义Web服务来实现它.

If you want to retrieve attachments in the InfoPath form in Form Library, as a workaround, we can download the InfoPath file and then retrieve attachments using C# code, or we can create a custom web service to achieve it.

以下文章供您参考:

以编程方式从InfoPath表单中提取附件

http://spappdev.blogspot.sg/2009/03/programatically-extract-attachments .html

有关InfoPath附件的十大问题

http://www.bizsupportonline.net/blog/2010 /top-10-questions-infopath-file-attachments.htm

最好的问候,

Dennis

这篇关于如何使用Web服务(/_vti_bin/ListData.svc)在sharepoint 2010表单库中检索附件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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