Software Update Document Library in Sharepoint

Im brand new to Sharepoint. I have a requirement, like, I need to move some documents from different document libraries to a document library called "Region". So that every time a document is updated in these document libraries, the document must also be updated in the "Region" library. I wrote a C # function in the class library, copied the documents to the library and added a dll to this bin folder. The function is working fine. But I'm stuck, not sure where to call this function. In which case should I write it, so that every time any of these documents has been changed, this change should be reflected in the "Region" library.

+3
source share
2 answers

You need to create a SharePoint event handler and attach it to all the document libraries in which you are editing documents. Then you override the methods ItemAddedand ItemUpdatedto perform the copy.

Learn more about this discussion in StackOverflow: SharePoint executing a method when an item is added to the library

+2
source

, , , . , , , , . Workflow, Visual Studio, , Workflow Power Pack, # SharePoint Designer.

. .

, Power Pack, . , , -)

+1

Source: https://habr.com/ru/post/1727209/


All Articles