I'm facing the following problem:
I have an embedeed silverlight xap application inside a custom visual webpart, that access SharePoint data through Microsoft.SharePoint.Client.Silverlight classes, and I have to modify some fields from an item from a list that has "Require content approval"
enabled. I update the item successfully, but its approval status is set to "Pending" afterwards.
How can I re-approve the content programatically?
Some additional information:
- SPList item has a moderation information field, but in Silverlight there is only "ListItem" which does not contain such field.
- When I try to do "item["_moderationinformation"] = something", I receive a PropertyOrFieldNotInitializedException.
- I can check for Item.ParentList.EnableModeration, but there is neither a field nor a method related to moderation on the item itself.
A possible solution would be to create and call a web service that approves the items, but I'd rather prefer to avoid hosting and calling a ws to cover this functionality.
Any help on this would be greatly appreciated.
View Complete Post