Forum Discussion
Kannan-Balasubramanian
Nov 17, 2020Copper Contributor
Copy version history from one file to another
The following is an existing functionality implemented in SharePoint 2010. Unfortunately, I don't have access to the code. So I'm not sure how the following is achieved. Is the following achievab...
Nov 17, 2020
Similar functionality can be developed in SharePoint Online, but I highly recommend to set a test lab / make a proof of concept before going ahead. Basically this is what you need to developer do:
1. Create a SPFx extension that allows to upload a new file to the library
2. The SPFx extension will have to call SPO REST APIs to first make a copy of the actual file in a folder and then allow to upload the new version of the file without overwriting current one.
3. It may happen SPO REST APIs are not enough and you could need to develop a custom API in Azure (It seems not to be the case for your scenario, but that's why I suggest to test it first)
1. Create a SPFx extension that allows to upload a new file to the library
2. The SPFx extension will have to call SPO REST APIs to first make a copy of the actual file in a folder and then allow to upload the new version of the file without overwriting current one.
3. It may happen SPO REST APIs are not enough and you could need to develop a custom API in Azure (It seems not to be the case for your scenario, but that's why I suggest to test it first)
- Kannan-BalasubramanianNov 17, 2020Copper Contributor
jcgonzalezmartin Thank you and yes this is what I had in mind. But my worry is, since the client script has to copy the metadata details from the old file and has to apply that in the new file for each version entry of the old file, there is a good chance an issue might occur and the new file might have partial version details.