Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

How to add files with metadata to another library programmatically.

$
0
0
Hi all, I have a pages library in publishing site. 1) I want to add files with metadata to other library including version number programmatically. 2) This Adding files to other library should be done when an item is updated. 3) Check added file version already exists or not in other library and then add. I have used web.files.add() method, am able to add files but without metadata and also version number is changing to 1.0 ( same fie version is adding but with different version number). How should I preserve same version number? Please guide me. Thanks in advance

san


Viewing all articles
Browse latest Browse all 11571

Trending Articles



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