Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted
  • 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.

share|improve this answer
    
That wouldn't be an option to hit from a server side event (such as a custom action in a workflow) would it? –  Abe Miessler Jun 21 '12 at 21:22
    
Sorry, I'm talking about #2 in my first comment. –  Abe Miessler Jun 21 '12 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. –  Falak Mahmood Jun 22 '12 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? –  Abe Miessler Jun 25 '12 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/… –  Falak Mahmood Jun 25 '12 at 19:16
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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