BizTalk Property Schema: Property Schema Base
Introduction
We use Property Schema to promote a property (field) so that we can access it in orchestration and use for Message routing. Elements in property schema has different Property Schema Base value.
http://lh3.ggpht.com/-_ms7gqeIruo/UBPpw3OkyII/AAAAAAAAAgE/mWNKtYtUZx0/image_thumb%25255B18%25255D.png?imgmax=800
MessageDataPropertyBase
This is Default Schema base value of Element.Promoted Property element which has MessageDataPropertyBase as Property Schema base can only be originated from associated Document Schema. This kind of promoted element is limited to the Document schema. In Orchestration, Document Schema element is associated with Promoted property Element using Promote –> Show promotions (and also Quick Promotion) and than this promoted property can be used in Orchestration or Port Level.
MessageContextPropertyBase
Promoted Property element which has MessageContextPropertyBase as Property Schema base can be originated from associated Document Schema or promoted in Pipeline Components or promoted using Correlation. So this Property is not associated to particular Document Schema, any document schema can use this promoted property.
PartContextPropertyBase
It is like MessageContextPropertyBase but promoted element with PartContextPropertyBase value can be used on a part of Multipart message.
Example
We have following Property Schema:
- MessageContext element has Property Schema base as MessageContextPropertyBase.
- PartContext element has Property Schema base as PartContextPropertyBase .
http://lh5.ggpht.com/-FtDxfUsqQwc/UBPoE4nO_YI/AAAAAAAAAfg/fy4QJp2FM8g/clip_image002%25255B5%25255D.png?imgmax=800 http://lh5.ggpht.com/-6SeaxdS3Rgk/UBPoF2YWs_I/AAAAAAAAAfk/cuEK8sD8HNQ/clip_image003%25255B5%25255D.png?imgmax=800
Following is the Multipart Message Part
http://lh6.ggpht.com/-p-fxk-IKz3I/UBPoGS-RFhI/AAAAAAAAAfo/R7HRRYNdTAA/clip_image004%25255B4%25255D.png?imgmax=800
So if we want to add context to the Multipart message, we can use following code:
MultiPartmsg(MyBiztalk.MessageContext)
//where Multipartmsg is message with MultipartMessage Type
Now, if we want to add context to a part (called Body) of Multipart message we can use:
MultiPartmsg.Body(MyBiztalk.PartContext)
Other languages
This article is also available in the following languages:
See Also
Another important place to find a huge amount of BizTalk related articles is the TechNet Wiki itself. The best entry point is BizTalk Server Resources on the TechNet Wiki.