For one of our BizTalk Projects we integrate with SharePoint to track messages and make them available to the users.

All messages processed in our Application share a common set of context properties that need to be available as column values. And

apart from that we want to place the messages in different folders in the document library to configure security settings per folder.

In order to do this we just subscribe on the messages published to the MessageBox we are interested in and configure the library folder and column values and properties in a custom pipeline component.