Read message context properties inside maps
Today in BizTalk, it is not possible (out-of-the-box) to read a context property inside a map.
It could be very useful to have a functoid to read the message context.
@Erwin well say you have a enveloped message and you need some information that is only contained in the message.
Maybe you want a static value that is dynamic per environment.
Or Maybe you want information From context regarding any other standard global values.
But you are right that much can be Done on the send part, but sometimes mapping is Done on the receive side.
@Fernando: Name a scenario, because if you really needed a value from the context it shouldn't have been on the context in the first place. Have it in your message instead or demote the property. I can only think of exceptional cases where you would want this.
Maybe this can give you some ideas
Thomas E. Canter commented
I think this needs a little more attention...
Ingemar Berggren commented
I've used custom functoids for this:
Would be useful out-of-the-box!
This feature should have existed long ago. The functionality to do this already exist in the component used for transformation.
Maybe it is not good to always have it on.
Put in a context property that instructs Biztalk to add the context.
Add the context or a copy of it via the addobject method plus a specific namespace and we are good to go.
This way you can use either functoid or direct xslt.