I am a beginner in Sharepoint and given a task to write timer jobs.
Once triggered, I want to move documents from one Sharepoint server library to another server library programmatically. So far my findings says that this can only be possible using Client Object Model because I am unable to create the second Sharepoint server (spUrl2) instance with
SPWebApplication.Lookup method using Server Object Model and this method returns
I am running following code from first Sharepoint server (spUrl1):
SPWebApplication primaryWebApplication = SPWebApplication.Lookup(new Uri("http://spUrl1")); SPWebApplication secondaryWebApplication = SPWebApplication.Lookup(new Uri("http://spUrl2"));
Is it possible to do the needful using Server Object Model because this is very convenient and I want the same thing. If not then how can I possibly do this file movement as I couldn't find similar reference related to this on web.
Thanks for your support in advance.