copyTo Web服务获取错误“NotFound” [英] copyTo web service getting error "NotFound"

查看:67
本文介绍了copyTo Web服务获取错误“NotFound”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Team,

我正在使用SPD copyTo方法将文件从Library复制到List。

I am working with SPD copyTo method for copying file from Library to List.

获取NotFound错误。

getting NotFound error.

环境:Sharepoint服务器2016,SPD 2013

Environments: Sharepoint server 2016, SPD 2013

HTTP电话:  [%工作流程背景:当前网站网址%] _ api / web / GetFileByServerRelativeUrl ('sites / sitename / listname / Test.txt')/ copyTo(strNewUrl ='sites/sitename/Lists/ listname / Attachments / itemID / Test.txt',bOverWrite
= true)

HTTP Call: [%Workflow Context:Current Site URL%]_api/web/GetFileByServerRelativeUrl('sites/sitename/listname/Test.txt')/copyTo(strNewUrl='sites/sitename/Lists/listname/Attachments/itemID/Test.txt',bOverWrite = true)

请帮助我。




srinu.mandapalli@gmail.com

srinu.mandapalli@gmail.com

推荐答案

嗨Srinu,

Hi Srinu,

copyTo需要一个POST,你不能通过浏览器导航到
。  msdn.microsoft.com/en-us/library/office/...
 



将文件复制到目标网址。

Copies the file to the destination URL.







Endpoint

/ copyto( strNewUrl ,  bOverWrite

/copyto(strNewUrlbOverWrite)

参数

类型:  字符串

绝对URL或服务器相对URL要复制到的目标文件路径。

Type: String
The absolute URL or server relative URL of the destination file path to copy to.

Type:  Boolean

true  覆盖同一位置的同名文件;否则  false

Type: Boolean
true to overwrite a file with the same name in the same location; otherwise false.

HTTP方法

POST

回复


这篇关于copyTo Web服务获取错误“NotFound”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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