Hello,
I have a task to copy files from a library in Site Collection A to another library in Site Collection B.
I tried calling HTTP WebService as below using POST method.
http://server/site/_api/web/folders/GetByUrl('/site/srclib')/Files/getbyurl('madcow.xlsx')/copyTo(strNewUrl = '/site/targetlib/madcow.xlsx,bOverWrite = true)
But its working for copying files only within site collection and not working accross site collection.
Can any one please help me providing approach how I can complete the task ?
I need it very urgently.
Thanks in advance