Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

SPFile CopyTo change item ID!

$
0
0

Hi, I have to move a file from a doc lib to another.

I'm using SpFile.CopyTo(newUrl, true) in order to override any existent file.

All is working fine, except that if I have an existent file it seems it is deleted and inserted: I found the old file in the recycle bin and the ID of the original file changes!

Is this the normal behaviour? How could I really overwrite (and not delete and recreate) the original file?

Thanx in advance,

Elena


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>