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

Trigger property promotion/demotion

$
0
0

Hi all,

I'm having the following issue on our SharePoint 2010 environment.

We have imported documents from a previous document management system. Now we see within a lot of documents that the property promotion/demotion is not working  (sync between document properties and Content type properties).

Properties set in SharePoint are not synced with the office document and vice versa.

A working solution is in the SharePoint web interface, making a small change to one of the properties. From then on the document is ok and promotion/demotion works as expected!

Because the numbers of documents a manual solution is not really acceptable. What I did is make a small test case with PowerShell to change a property. The property gets changed ok, but it does not trigger a property promotion/demotion like it does when you make a manual change...

In the article http://msdn.microsoft.com/en-us/library/aa543341(v=office.14).aspx it says the following actions trigger a property demotion/promotion:

1. A file is uploaded to a document library.
2. The fields of a list item that is associated with a file are modified.
3. The Properties property of an SPFile object is updated programmatically.
4. A file is downloaded for the first time after the list schema has changed.

Option 2 works manually, both option 3 does not seem to work via PowerShell.

Does anyone now if it's possible to trigger the Promotion/demotion process via PowerShell? Or is this only possible via C#..

thx,

Bart

 

Viewing all articles
Browse latest Browse all 11508

Trending Articles



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