Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Auto update data from one site collection list with multiple input

  Asked By: Connor    Date: Apr 26    Category: Sharepoint    Views: 2822

Is there a way to automatically update(including deleting) items in a
list in one site collection from multiple lists in other site
collection?

Could workflow do this? I was thinking it would work well if I could
set up some rule for each of the input lists that if I added an item it
automatically added the item to the main list as well as if I deleted
an item it automatically deleted it from the main list.

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Moises Harrington     Answered On: Apr 26

Using event handlers will work. You'll just have to remember to
RunWithElevatedPrivileges when spanning site  collections.

 
Answer #2    Answered By: Alka Sarabhai     Answered On: Apr 26

Do you have any suggestions on where to find documentation on how to
set this up?

 
Answer #3    Answered By: Eashan Nadkarni     Answered On: Apr 26

Here's an impersonation example:

SPSecurity.RunWithElevatedPrivileges(delegate()
{
// do things assuming the permission of the "system account";
using (SPSite site  = new SPSite(web.Site.ID))
{
Response.Write("content database name for this site is " +
site.ContentDatabase.Name);
}
});

Event handler links:

msdn.microsoft.com/en-us/library/ms453149.aspx
www.wrox.com/WileyCDA/Section/id-306329.html
blogs.msdn.com/.../part-1-event-handlers-every\
thing-you-need-to-know-about-microsoft-office-sharepoint-portal-server-moss-even\
t-handlers.aspx

 




Tagged: