Custom extended properties not propagated in Sharepoint workflows !!!

 
I was working on my open source framework for Sharepoint workflow when I found a new BUG in Sharepoint workflows this evening: according to the sdk :
"When you write to the ExtendedProperties hash table, Microsoft Windows SharePoint Services 3.0 examines each key-value pair and performs the following function:

If a value has a key-name that matches the name of a field on the task content type, that value is written to the matching field. If a value’s key-name does not match any of the field for that task, the value is written to the SPListItem.Properties object of that task. The SPListItem.Properties property returns a System.Collections.Hashtable object. Writing data to this object makes it available through the Microsoft Windows SharePoint Services 3.0 object model".

  1. My task is associated with a content type with site columns  called "Comments" and "Description"
  2. in my workflow code (MOSS sp1)

            Task1Properties.AssignedTo = initFormData.Reviewers.ContactList[0];
            Task1Properties.Description = "bla bla";
            Task1Properties.Title = "my title";
            Task1Properties.ExtendedProperties["Comments"] = "my comments";
            Task1Properties.ExtendedProperties["Description"] = "descr";
            Task1Properties.ExtendedProperties["Contract"] = "my contract";

However, In the Task.properties I don’t get a Contract item in the Properties collection. The custom properties are not propagated  as mentioned by the sdk !!!

I will report this bug (could be fixed in sp2 or in SharepointvNext)

 

 

Advertisements

4 responses to “Custom extended properties not propagated in Sharepoint workflows !!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s