未能办理。
颠末各种尝试,一篇来自stackoverflow的帖子提醒了我,
“It was a permission problem. The IIS user did not have read-rights to the folder. Changed to use application pool identity instead and now its working.”
我的账号权限充足。颠末查询原来是SharePoint管理中心设置“被禁止的文件类型”导致的。读取的文件是Rxe类型,被禁止了。
CSOM: How to copy a document from one document library to another documents library?
I have a requirement to copy documents that meets a certain criteria ( i.e once a document's approval status = approved) to an Archived documents library. I am looping through all the sites and using CAML query to filter out the documents with approved status but I have no idea how to copy the document to a different library location using CSOM C# after checking this condition. Also, I need the document to be replaced in case it is already present in the archived library.
Note: The archived library is in a different site collection.
Any help is greatly appreciated. Thank you in advance.