Click here to Skip to main content
Click here to Skip to main content
Technical Blog

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

, 1 Feb 2013 CC (ASA 3U)
Rate this:
Please Sign up or sign in to vote.
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

Share

About the Author

Pavel Korsukov
Architect
Australia Australia
No Biography provided

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.141223.1 | Last Updated 1 Feb 2013
Article Copyright 2013 by Pavel Korsukov
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid