1

I have a contracts list on the top level site because it needs to be accessed by multiple subsites, however one of the subsites has a list that gathers some pieces of information that I need to push to that top level list as a new item.

In SPDesigner, I can create a workflow to update an item in a list on the same site, but not a different site (top or otherwise).

Can anyone tell me how I can update or add a new item on a top level site list from a subsite?

1 Answer 1

1

You can try SharePoint 2010 ECMA script which could be triggered from within a CEWP (but not automatically upon insert!). You need to make sure you get a reference to the List in the Top-Level site, not on the context Web using something like :

currentcontext = new SP.ClientContext.get_current();
this.sitecoll = currentcontext.get_site();  //-> Gets Top level site collection
currentcontext.load(this.sitecoll);

See example for update at the following locations:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.