My apologies if I'm reposting this. I'm still trying to find an answer and I couldn't find my original post....
I need to set the retention schedule on a folder programmatically since I will need to do this for 500 users. I've created a test case that functions correctly using the Sharepoint GUI, but I'm having some trouble setting the retention schedule since
it's new in 2010 and there aren't any examples on the web yet.
So my code creates a folder (among other things) and then i need to set a simple retention policy that simply kicks off a workflow after the passage of so much time. The documentation for the method call is sparse and doesn't include any examples.
The retentionXml param is described as a valid xml fragment, again without any example. I just need to know what this should look like for the method call. Here's a code snippet...
Dim lp As New ListPolicySettings(mySPList)
lp.SetRetentionSchedule("myFolder", "xml fragament????", "my folder description")
lp.UseListPolicy = True
View Complete Post