How to Read a Promoted Property(within Pipeline) in Orchestration

Home Page › Forums › BizTalk 2004 – BizTalk 2010 › How to Read a Promoted Property(within Pipeline) in Orchestration

Viewing 1 reply thread
  • Author
    Posts
    • #23879

      Hi,
      Inside a Custom Pipeline I promote a Property

      inmsg.Context.Promote(

       

      “ISS_MESSAGE_KEY”, “http://KCS.ISS.Biztalk.Schemas.PropertySchema.PropertySchema”, “1000”);

      and I put this ISS_MESSAGE_KEY in the PropertySchema, besides doesnt belongs to none schema

      the issue is how can I read this property inside Orch?
      the intellisense doesnt shows me.. I tried with Msg(Namespace.property).

      thanks in advanced

    • #23880

      Hi Danky,

       

         To read this property in an Expression shape in an Orchestration, I believe the correct syntax should be:

      inmsg([PropertySchemaName].ISS_MESSAGE_KEY)

         Assuming that inmsg is your Message, and substitute your message’s schema for [PropertySchemaName] (by default it’s PropertySchema). I hope that works…

       

         Daniel.

       

      • #23881

        thanks man for quick reply but not works….

        • #23882

          Hi,

           

             Regarding BizTalk Message Context Properties, you should have a Property Schema XSD defined in your project, in order to be able to access a promoted field in an orchestration. Do you have that defined?

             Also, I have worked with promoted properties (that were set at design time) but, in your scenario, you are promoting one field at runtime in a custom pipeline, so I am not sure if you would be able to access that later on in your orchestration.

           

             Daniel.

          • #23883

            Open your property schema and select the  set the ISS_MESSAGE_KEY property. In the Visual Studio property window set the Property Schema Base to MessageContextPropertyBase.

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