A while back I’ve published post about how to configure CRM 2011 Online out of the box integration with AppFabric, I showed all configuration on CRM so now it’s time to present client application I’d call that app listener, and main role of that app will be listen and get all messages send from CRM Online via AppFabric. Application itself will be hosted on premise (to be 100 % honest on my laptop ). CRM SDK version from December 2010 contains sample app and I’m not going to reinvent a wheel. I’ll show what you need to configure in that app to receive messages from our CRM system. Presented example will be the simplest one as mentioned in previous post it is one way integration, so message comes from CRM Online via AppFabric Service Bus to our app . Let’s get hands dirty I attached ready to compile solution which is modified example from SDK. (I removed Azure storage code to simplify it ), all you need to do is change app.config
Values to change
- IssuerSecret : Current Management Key fom appfabric.azure.com
- ServiceNamespace : Service Namespace from appfabric.azure.com
- IssuerName : Management Key Name
- ServicePath : part of service bus url
Code of that application is very simple, example implements IServiceEndpointPlugin behaviour which has got only one method Execute. Functionality of sample app is even simpler it prints the contents of the Microsoft Dynamics CRM execution context sent from plugin to on premise app.
Despite simplicity of the example, it is very “powerful” solution from business point of view we integrated CRM 2011 online with on premise app without much hassle, so happy coding/integrating.:)