2

I've been able to use the object model to move list items between sites in the same site collection, but I'm wondering if I can use it to move list items between two different web applications on different servers? Would I have to use web services to do this?

1 Answer 1

2
  • If your web applications are within the same farm, you can use the object model to move/copy the lists between web applications. But in such case, both web application at least be running using the same application pool account, or sufficient permissions must be there on Content DBs if application pool accounts are different.

  • If Web Applications are on different farms then, you can use SPServices project which makes it easier. http://spservices.codeplex.com/

  • You can also use OOTB list service of a Web application to move the list data.

I would personally fancy the second option.

6
  • That wouldn't be an option to hit from a server side event (such as a custom action in a workflow) would it? Jun 21, 2012 at 21:22
  • Sorry, I'm talking about #2 in my first comment. Jun 21, 2012 at 22:50
  • I used SPServices to kicked off workflows in the past but I don't see an issue why they can't be used to invoke other server side events because, the whole library abstracts SharePoint's Web Services and makes them easier to use. Jun 22, 2012 at 8:24
  • What i'm wondering is where you would even use a jQuery library for something like a custom workflow action. Aren't custom workflow actions entirely defined in code behind or is there a client side component? Jun 25, 2012 at 16:12
  • I'm not sure if you can solely use jQuery library for Custom work flow action but you can do some small things like starting the workflows using jQuery see: nothingbutsharepoint.com/sites/eusp/Pages/… Jun 25, 2012 at 19:16

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.