Promoted Properties with Canonical Schemas

Home Page Forums BizTalk 2004 – BizTalk 2010 Promoted Properties with Canonical Schemas

Viewing 2 reply threads
  • Author
    Posts
    • #25246

      Hi, I have a source schema which will have a promoted property promoted into its message context by a custom pipeline component.  How can I ensure that when I map the source schema to my Canonical schema, that the custom promoted property is also mapped across?  This would then enable me to route my Canonical schema based on this custom promoted property?

      Many thanks in advance.

    • #25249

      Hi,

       

         To accomplish what you want, you should promote the field in your Canonical schema if you know which field will receive a value that will allow you to route the message based on the promoted property, just make sure that the field is unique and not reoccurring; then execute the map in your Receive Port. Please see the following blog for more information (in particular the third post):

       

      http://blog.eliasen.dk/default,month,2007-09.aspx

       

         Daniel.

       

      • #25280

        A BizTalk map only operates on the message data, not the message context.

        However, if you perform the map in the receive port then the only the message data is modified, while the message context remains intact. ( with the exception that properties are promoted from the output message based on it schema and these properties may overwrite existing properties)

        If you perform the map in an orchestration you create a new message, with a blank context, so you must copy these properties yourself e.g.
        In an message assignment shape in the construct message shape after the transform:
        OutputMessage(Mynamespace.MyProperty) = InputMessage(Mynamespace.MyProperty);

        or to copy all properties:
        OutputMessage(*) = InputMessage(*);

    • #50314
      biztalkgurus

        Goddesses: A World of Myth and Magic • Burleigh Muten • 9781841480756

    Viewing 2 reply threads
    • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.