Thursday, February 01, 2007
It's been a while, but i hope this will make up for being quiet again. I've run across the question many times, but never found the time to really dive into it. Now that time was found. And attached is the result. It is not a 100% clean construct because BizTalk really tries to do its best to disallow access to internal classes and runtime. However, utilitzing some thread local storage and (what i think is) a reasonable assumption, this functoid is actually able to retrieve any of the message context properties in a receive port (no orchestrations required) ContextAccessor.zip (255.35 KB)
2/1/2007 5:00:36 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [3]Trackback
12/10/2009 10:26:26 PM (W. Europe Standard Time, UTC+01:00)
I have tried this .dll to use %MessageID% inside my map. But didn't have any luck. Is http://schemas.microsoft.com/BizTalk/2003/file-properties to second perameter?
11/9/2010 5:56:22 PM (W. Europe Standard Time, UTC+01:00)
Yeah, the namespace parameter is expected as full namespace URI.

Please remove the "%" signs from the entity you are trying to access since that is "File Adapter" approach.

You can look at all available namespaces and their entities looking through the BizTalk Administration Console, System.Application\Schemas[Type=Property]


Hope this helps,
2/10/2011 7:31:26 PM (W. Europe Standard Time, UTC+01:00)
I'm getting below error when i try to build the c# project in Visual Studio 2008.

Error 1 The command ""C:\ContextAccessor\ContextAccessor\Support Tools\DebugDeploy.bat" "C:\ContextAccessor\ContextAccessor\bin\Debug\ContextAccessor.dll" "C:\ContextAccessor\ContextAccessor\bin\Debug\"" exited with code 1. ContextAccessor
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):