SharePoint 2013 REST API创建带有附件javascript的列表项 [英] SharePoint 2013 REST API create list item with attachments javascript
问题描述
我还编写了用于上传特定项目附件的代码.问题是,我需要打两个电话才能做到这一点.
解决方案
不支持创建列表 目前,通过REST API在单个HTTP调用中具有多个附件的项目.
我们需要先创建一个列表项,然后然后上传多个附件.
此处是有关创建列表项和上传多个附件供您参考.
http://www.c-sharpcorner.com/article/sharepoint-2013-将多个附件上传到列表中使用-j/的新项目
作为解决方法,我们还可以创建一个自定义REST服务或ASP.NET Handler(.ashx)即可实现.
更多信息供您参考.
https://tjendarta.wordpress.com/2014/07/31/create-custom-http-handler-共享点/
最好的问候, >
Lee Liu
By doing online research, I wrote code to create list item in JavaScript for SharePoint 2013 REST API, code is working fine.
I have also wrote code to upload attachments for particular item. The problem is, I need to make two separate calls to make this happen.
What I am trying to achieve is, create list item with multiple attachments in single HTTP call.
Hi,
It is not support to create a list item with multiple attachments in single HTTP call via REST API currently.
We need to create a list item first and then upload multiple attachments.
Here is an article about creating list item and upload multiple attachments for your reference.
As a workaround, we can also create a custom REST service or ASP.NET Handler(.ashx) to achieve it.
More information for your reference.
https://tjendarta.wordpress.com/2014/07/31/create-custom-http-handler-in-sharepoint/
Best regards,
Lee Liu
这篇关于SharePoint 2013 REST API创建带有附件javascript的列表项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!