Promote Property and Map

Home Page Forums BizTalk 2004 – BizTalk 2010 Promote Property and Map

Viewing 1 reply thread
  • Author
    Posts
    • #13592

      Hi I have two source schema : schema 1 and schema 2. In my map I use Schema 2 as my source schema. I have some promoted property in Schema 1 and need to access it in my map. Could anyone suggest how I could go about doing that.

    • #13593

      Take a look at this: http://biztalkblogs.com/carlosmedina/archive/2006/03/23/355.aspx

      I think it will do what you want.

      • #13594

        Good point Tomas.
        But what fun is BizTalk without a hack 😀

        I have also used multi message mapping and created a new input message with all the fields I wanted to use inside the map.

        Also important to point out that none of these methods really work outside of an Orchestration.

        Best of luck.

        • #13595

          [quote:7585e1ded9=\”DnzP \”]Hi I have two source schema : schema 1 and schema 2. In my map I use Schema 2 as my source schema. I have some promoted property in Schema 1 and need to access it in my map. Could anyone suggest how I could go about doing that.[/quote:7585e1ded9]

          The custom function Stephen referenced earlier one (written by my friend Carlos) will probably do the trick for you, but mind you, it is a little bit of a hack 🙂

          If you want to be more on the safe side, here’s what I usually do:

          I put an expression shape right after the transform shape inside the *same* Construct message shape in the orchestration. In that expression shape, I simply use code to manipulate the rest of the message. For example, I might set a distinguished field in the recently created message to the value of a context property of the original message. Keep in mind you’ll probably need to ensure that the map initializes all nodes of the target document with no incoming links to a default value, so that the message is generated correctly.

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