问题描述
大家好!
我创建工作流程是为了复制文件并将同一文件创建到另一个库,这可以正常工作,但是当我从该文件打开属性时,列表中的所有其他字段都不会显示.
我该如何使用工作流移动文件并休息网络服务,而又不从表中解构我的脚本?
Hi guys!
I created a workflow in order to copy a file and create the same file to another library, this works fine but when I opened the properties from this file, all anothers field´s from the list does not show.
How I could to move a file using workflow and rest webservice without descontruct my scruture from table?
我使用了方法"copyTo"复制文件
I used the method "copyTo" to copy the file
预先感谢
推荐答案
我了解文件复制成功,但关联的元数据字段未复制.
I understand the file copied successfully, but the associated metadata field not copied.
我使用以下REST Url测试了复制文件,它还将复制元数据字段:
I tested with the below REST Url to copy file and it will copy the metadata field as well:
http://sp/sites/dev/_api/web/GetFileByServerRelativeUrl('/sites/dev/movedoc/download.jpg')/copyTo(strNewUrl='/sites/dev/Shared%20Documents/download.png',bOverWrite=true)
请确保新库中也存在元数据字段:
Please make sure the metadata field also existed in the new library:
源库:
目标库,您可以看到元数据字段"test1" "test2"还将其值复制到共享文档库中:
Target library, you can see the metadata field "test1" "test2" also copied with the value to the Shared Documents library:
谢谢
最好的问候
这篇关于SharePoint 2013-列表/库中的字段未显示在文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!