What is the best place to define constants in biztalk

Home Page › Forums › BizTalk 2004 – BizTalk 2010 › What is the best place to define constants in biztalk

Viewing 1 reply thread
  • Author
    Posts
    • #20143

      I am working on a biztalk map, in which I need to use constant values for some fields in the destination map. Can I define them in a place like app.config, so that when ever I want to change them I need not deploy the complete solution? (I cannot use default/fixed attributes of xs:element in the schema)

      Please help

      Thank you

    • #20146

      Sidhu,

      There are a number of places to store your config to use in a map (see Mike Stephensons blog post on the subject – Where do I store my custom configuration for a BizTalk solution).

      If you’re after a map only solution I would suggest looking at using some inline C# or calling an external assembly to get your config data.

      I personally don’t like going externally in maps (unless I absolutely have to), so I would suggest populating a config Xml message in your orchestration (presuming you’re using an orchestration) via a C# Helper function and passing that config message into your map, along with the message to be mapped. If you’re calling the map several times in the same orchestration this approach will be much quicker as it will only read the config from your config store once – a sort of poor-man’s cache 😉

      Hope this helps, Nick,

       

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