Re: Fetch lookup Data from MS CRM 4.0

Home Page Forums BizTalk 2004 – BizTalk 2010 Fetch lookup Data from MS CRM 4.0 Re: Fetch lookup Data from MS CRM 4.0

#21647

See: http://www.ascentium.com/blog/crm/post398.aspx

CRM Response Namespace

A core feature of the new adapter and of CRM 4.0 is supporting multiple organizations. While this is a really cool feature, we have found an issue with the new adapter that make truly supporting multiple organizations in BizTalk very challenging. The CRM response XSD, a generic XSD containing the success or failure message sent from CRM on each call, has an organization specific namespace. For example, in Ascentium’s development environment (organization is AscentiumCrmDev) has a CRM response XSD namespace of http://schemas.microsoft.com/crm/2007/BizTalkAdapter/AscentiumCRMDev
/Response
. The problem with this is that if the organization name changes from what the BizTalk solution was developed on, the response message will fail because of the differences in expected namespace.

Here are a couple of possible solutions that we considered:

  •  
    • Creating a custom receive pipeline to change the namespace.
    • Create multiple inbound schema and maps for known organizations and map your ports to the appropriate maps.
    • Ignore the response message from CRM.

There are many more possible solutions including keeping the organization names the same between all environments, but this defeats the purpose of supporting multiple organizations. For our solution, we implemented a custom receive pipeline to update the namespace as the message comes back from CRM. This is not a simple solution and requires a decent amount of coding, but it serves the long term need for our project.