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

SharePoint 2010 Content deployment - List Item - Attachment - Propertie missing !?

$
0
0

Hi,

The cenario is
Farm A - internal farm - Content deployment job running fine.
Farm B - external farm

To clear some things, all the content deployment job are running fine. there is nothing wrong.

The problem.

We have some custom lists with items added programmaticly, these items have attachments and this attachments have properties. Here is the problem these properties are not included on content deployment job!?!?.

Adding the properties to the attachment file

SPFile targetFile = Web.GetFile(fileURL);
targetFile.Properties.Add("MyCustomProp", "Sadly i don't get copied by Ccontent Deployment");
targetFile.Update();

Geting the value back, work on Farm A, but on Farm B its not working. I don't have access to Farm B. :\

string result = (string)file.GetProperty("FileTitle");

I can't find any reference to object properties not beeing included on content deployment... am i missing something here ?

Thanks.
PP


Viewing all articles
Browse latest Browse all 11571

Trending Articles



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