Capturing promoted properties in the orch.

Home Page Forums BizTalk 2004 – BizTalk 2010 Capturing promoted properties in the orch.

Viewing 1 reply thread
  • Author
    Posts
    • #12828

      I have a file whose header and body are both important to me and i need to mix some fields from the header and body to produce an outgoing message.

      Eg:

      AA,BB; [HEADER]

      [BODY]
      a,b,c,d,e,f,g,h…
      a,b,c,d,e,f,g,h…
      a,b,c,d,e,f,g,h…
      a,b,c,d,e,f,g,h…
      a,b,c,d,e,f,g,h…

      I want to extract fields AA,BB and a,b,c in the same orchestration.

      I have promoted these header fields and have context message properties.

      Now I need to get the value of these properties to assign them to outgoing messages.

      I read a few acticles on promotion but I need examples and not just overviews.

    • #12829

      There are a number of ways of doing this.
      1. Declare the properties you wish to use on the outbound message, using the same properties schema used for the header.
      In a message assignment you can copy the message context:
      outputmessage(*) = inputmessage(*); //copies all properties
      outputmessage(Your.property) = inputmessage(Your.property)
      The output pipeline will demote the properties into the appropraite message fields.

      1. You can specifically assign values to the outputmessage using distinguished fields or the xpath function
      outputmessage.field = inputmessage(Your.property);
      xpath(outputmessage,<xpath of field>) = inputmessage(Your.property)

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