简体   繁体   English

Sharepoint:将程序复制文件复制到另一个文档库

[英]Sharepoint: Programmatic Copy File to Another Document library

In SharePoint Online, I would like to automatically copy a file to another site when it is uploaded. 在SharePoint Online中,我希望在上载文件时自动将文件复制到另一个站点。

My question is: 我的问题是:

  1. Is it possible to put into practice? 是否有可能付诸实践?
  2. If it is possible, could this function be created in JavaScript with Script Editor Web Parts? 如果可能,可以使用脚本编辑器Web部件在JavaScript中创建此功能吗?

That would be a very hacky solution if you get it to work. 如果你让它发挥作用,这将是一个非常hacky解决方案。 The recommend approach is to use remote event receivers to accomplish this. 建议的方法是使用远程事件接收器来完成此任务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用JavaScript在SharePoint 2010文档库中创建文档的副本 - Create a copy of document in SharePoint 2010 document library using JavaScript SharePoint Rest文档库 - SharePoint Rest Document library Output SharePoint 文档库文件到 CSV 文件使用 Z686155AF75A60A0EDD3F6E9D80C9Z 文件 - Output SharePoint Document Library Files to CSV File Using JavaScript 使用JS FileReader API读取Sharepoint文档库文件 - Read Sharepoint Document Library file with JS FileReader API 使用REST更新SharePoint文档库中的文件内容-javascript - update a file content in SharePoint document library with REST - javascript 如何使用Javascript在Sharepoint 2007文档库中创建新文件 - How to create a new file in Sharepoint 2007 document library using Javascript Sharepoint文档库-使用javascript的标题文件名 - Sharepoint Document Library - Filename to title using javascript 在SharePoint网站中,将javascript文件应用于创建的每个文档库的选项是什么? - Within a SharePoint site, what is are my options to apply a javascript file to every document library that is created? 将 Read DropZone 中的拖放文件上传到 SPFX 中的 SharePoint 在线文档库 - Upload the dropped file inside Read DropZone to SharePoint online document library inside SPFX 从另一个 JS 文件加载带有 document.write 的库 - Loading library with document.write from another JS file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM