SharePoint Online Merge Two documents

Category: apps for sharepoint 2013


aniruddha_1979 on Wed, 24 Oct 2018 15:25:47

Hi all,

I am in of an approach to merge two documents (say ABC.docx and ABCv10.docx) in SharePoint online. Once ABC.Docx is overwritten by ABCv10.docx, will delete the latter. 

How can I achieve this?

Am thinking of

a ) creating an Azure Job, user Powershell that will run continuously? 

b) Remote event receiver on SPO.

Is there any other better options. What API should I use to merge two documents located on SPO library?




Jerry Zy on Thu, 25 Oct 2018 06:34:57

Hi aniruddha,

In SharePoint Online, I would suggest to create Remote Event Receiver to trigger merge documents in ItemUpdated event.

And for merging Word document, we could use OpenXML SDK to achieve, check the following code demos:

Merge Word Documents in Document Library

Merge word documents using OPEN XML SDK


Best Regards