| | | Forum Newbie
       
Group: Forum Members Last Login: Tuesday, August 26, 2008 Posts: 1, Visits: 3 |
| | I am trying to get a workflow to trigger when a document is published in a SharePoint library, because there is no event to do this directly I am using the Item Updating event and hope to be able to use a Rule action to detect if the change is Document Status moving from draft to pending. My problem is that I can't find out what the status of the document was before the event and will be after the event, it looks like I should be using the BeforeChangedProperties.Property, this has two members, Key and Value, but I can't find any more information. BeforeChangedProperty is buried in the XML variables as: XmlVariables.SPEventData.WebApplication.Site.Web.List.Item.BeforeChangedProperties.Property When I assign BeforeChangedProperties.Property, BeforeChangedProperties.Property.Key or BeforeChangedProperties.Property.Value to a variable I get an empty string, and I can't find the syntax to pick the item I want (I assume there is a collection or array of properties and I must some how tell Skelta the name or index of the one I want). If there is anyone out there who has done this I would love to hear how it's done, Thanks |
| | | | Supreme Being
       
Group: Forum Members Last Login: 2 days ago @ 11:48 PM Posts: 64, Visits: 69 |
| | Hi David, You should be able to find the property values using XML Iterator. What you will need to do is to create an XM Iterator for the property node and use the foreach activity to loop through the properties and find the value for the respective property (status property). Regards, RSimon |
| |
|
|