Accessing fields from header section of Envelope message RRS feed

  • Question

  • Hi ..

    source is sending an envelope message which contains header and body. We are archiving this message using custom archive pipeline component. The archive component is place in decode stage. we also have disassemble stage with 'documentspecnames' and 'envelopespecnames'. The disassemble stage removes the header part of the message.There are  three fields in the header part and I want to access those fields or store them in a variable before the header part is removed from the disassemble stage. I want to use these fields across orch and mappings. Can you suggest the best way to do this we have any code snippet available if this requires a custom pipeline component?

    • Edited by S27051989 Wednesday, October 5, 2016 9:24 AM
    Wednesday, October 5, 2016 9:23 AM


  • Hi,

    You have to have the fields in message header as the promoted properties for you to be able to access them inside the orchestration ..

    Just create property schema for the fields that you require from the Header(Set their PropertySchemaBase as MessageContextProperty) and promote those fields using the values from the incoming envolope message. That way during the disassembling, those header values will be promoted and available in the mesage onctext of the BodySchema... and you will be able to use them even if the headers are stripped off.

    refer BizTalk Envelopes explained

    Refer Property Promotion for promoting properties...


    Mandar Dharmadhikari

    Wednesday, October 5, 2016 9:34 AM

All replies