Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Auto update data from one site collection list with multiple input

  Asked By: Connor Vazquez         Date: Apr 26, 2008      Category: Sharepoint      Views: 687
 

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.

Tagged:                      

 

3 Answers Found

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

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, 2008       

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, 2008       

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

 


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].