Click here to Skip to main content
15,881,839 members
Articles / Hosted Services / Azure

E-mail queues in MS Dynamics CRM 2011 Online using Exchange Online and Windows Azure

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
1 Feb 2013CC (ASA 3U)3 min read 21.8K   3  
E-mail queues in MS Dynamics CRM 2011 Online using Exchange Online and Windows Azure.

Recently I have provided the proof of concept for a customer using CRM 2011 Online and I was surprised how hard it could be to configure the cloud based solution for the typical task of e-mail requests automation.

The task is simple. A company allowing the requests from the customers. Some customers could send formalized request in paper by post. Another group of customers could fill the web form on company’s website. Both requests should be stored in CRM to simplify the relationship management. If you are familiar with the capabilities of Dynamics CRM product than it is obvious that it is enough to use a standard functionality for e-mail processing using queues. So, proposed solution: 

Dynamics CRM 2011 E-mail Router ussage

If we use the cloud to host the components of the solution than we can choose:

  1. Microsoft Dynamics CRM 2011 Online – the most recent implementation of the CRM for Microsoft technology stack.
  2. Microsoft Exchange 2010 Online – mailing service in the cloud.
  3. Microsoft Dynamics 2011 E-mail router – the component which allows to poll the mail box and direct the requests to the CRM queue.

As always things turn to worth while implementing the solution. For some reason Microsoft have not implemented the most important feature of e-mails polling out of the box in the online version. That is why we could not implement the entire solution in the cloud (You are kidding me!). Or we can?  We can use Windows Azure service to create a virtual machine and set up E-mail Router. It is not so elegant but far better than to buy a server.

What is important for the implementation:

In Exchange:

  1. Set up the e-mail you will use for the queue.
  2. It may be required to grant a full access to the e-mail using Remoting Management for Exchange Online from PowerShell.

In Dynamics CRM you should:

  1. Create the team with dedicated queue.
  2. Set the e-mail for the queue and choose “E-mail router” as E-mail access configuration.
  3. Approve the e-mail.
  4. Assign the queue to the team, not only choose it in lookup! (it will require the access permissions for the team).

In Windows Azure:

  1. Create Virtual Machine.
  2. Add Application Server role in Windows Server.
  3. Setup MS Dynamics CRM 2011 E-mail Router (after that you will be able to interact with CRM but Exchange will not work with error 401 Unauthorised)
  4. Setup Update Rollup 7 for MS Dynamics CRM 2011 E-mail Router – there are separate installer for the router (Updates not installed during component installation. They are kidding you!)
  5. Setup Update Rollup 8 for MS Dynamics CRM 2011 E-mail Router.
  6. Configure E-mail Router using Exchange service which looks like https://podxxxxx.outlook.com/EWS/Exchange.asmx. The POD server could be found in Exchange options for POP connection.
  7. Configure E-mail Router using CRM service which looks like https://dev.crm5.dynamics.com/afe3c2ec40634335aaf340f360c2d9cr.
  8. If you need to troubleshoot the E-mail Router you can enable logging for the component.
  9. If your company use the HTTP proxy there is no way to make the component working. Common trick with .exe.config file for .NET application which contains default proxy settings is not working for Dynamics CRM E-mail router service. Machine.config not working too.

So, this is it! Now we can implement our custom workflow with assignments, document storing, barcode recognising and so on. I hope will tell this story some day. Thank you for reading!

License

This article, along with any associated source code and files, is licensed under The Creative Commons Attribution-Share Alike 3.0 Unported License


Written By
Founder Deploy4Me
Australia Australia
I am a co-founder of Deploy4Me and a Technical Architect. The major interests are software development, software deployment and my family =) Feel free to take a look on what I am doing day by day on Deploy4Me and make you comment to it. Thanks!

Comments and Discussions

 
-- There are no messages in this forum --