01 July 2014

Setup Orchard CRM portal website on Azure

Summary

In this post, I will demonstrate how to set up a front-end Orchard CRM portal website on Azure, with Dynamics CRM as the back-end system.
A portal user correspond with a "contact" record in Dynamics CRM, so the user can manage his/her own CRM information without directly accessing the CRM system.
A live demo can be found on: http://www.orchardcrm.com

Terms

Microsoft Azure
Microsoft Azure is an open and flexible cloud platform that enables you to quickly build, deploy and manage applications across a global network of Microsoft-managed datacenters.
Microsoft Dynamics CRM
Microsoft Dynamics CRM is a customer relationship management (CRM) business solution that drives sales productivity and marketing effectiveness through social insights, business intelligence, and campaign management in the cloud, on-premises, or with a hybrid combination.
Orchard CMS
Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform. Orchard is delivered as part of the ASP.NET Open Source Gallery under the Outercurve Foundation.
Orchard CRM
Orchard CRM is an open source, Microsoft Dynamics CRM portal solution for Orchard CMS; support Microsoft Dynamics CRM 2011/2013 Online, On Premise and Partner Hosted.

Content

Please follow these steps to setup Orchard CRM portal on Azure:
  1. Setup an Azure website using Orchard CMS template.
  2. Install and configure “Dynamics CRM” model.
  3. Add portal navigation pages.
  4. Setup portal users.

Setup an Azure website using Orchard CMS template


Click NEW -> COMPUTE -> WEB SITE ->FROM GALLERY, then select CMS on the left navigation list, then choose Orchard CMS.

Click “Next”, provide URL prefix, WEBSCALEGROUP and SUBSCRIPTION, and then click “Complete”.

Your Azure website will be created after a few minutes, once created, let’s click on the site name and browse some properties.

The “Dashboard” page provides you the overview of the website, one important thing to notice is you can download the “Publish Profile” and then use it in a website editor (Visual Studio, WebMatrix) for publishing a website onto this Azure website.

You can increase the scalability of the website by clicking the “SCALE” tab, and change the hosting mode and capacity of the website.  Azure website is offered in four tiers: Free, Shared, Basic and Standard, in different price.

For this demo, you don’t need to make change, but do verify the .Net Framework 4.5 is enabled on the “CONFIGURE” tab, by default it is enabled.

Now click the SITE URL from the Dashboard page, on the first time you launch the Orchard site, it will gather some basic information to build the site. In this demo, we use the default settings to build the Orchard site, click “Finish Setup” and wait a few seconds, the Orchard site will be ready to use.

Click the “admin” link on the bottom of the page, or simply add a “/admin” on the site URL, it will redirect to the Orchard Admin Dashboard panel. 

Install and configure “Dynamics CRM” model

From the left navigation panel of the Orchard Admin Dashboard, click “Modules”, then click the “Gallery” tab, search for “Dynamics CRM”, click “Install” and then “Enable” the feature.

After you enabled the module, you should see a “Dynamics CRM” link just under the “Settings” menu on the left navigation bar of the Dashboard. (In case you don’t see that link appear, please click the “Install” again, and then enable it again; this is assembly loading issue in this version.)

Click on the “Dynamics CRM” link, type in the connection string as examples. 
You can try it using CRM Online Trail.


Add portal navigation pages

From the left navigation panel of the Orchard Admin Dashboard, click “Navigation”, then add custom link; Repeat this step to add the following links:

Menu Text URL                                 
CRM Profile      /DynamicsCRM/Account
Cases            /DynamicsCRM/Case
Customers        /DynamicsCRM/Customer
Orders           /DynamicsCRM/Order
Articles         /DynamicsCRM/Article
Service Calendar /DynamicsCRM/Calendar


Setup portal users

From the left navigation panel of the Orchard Admin Dashboard, click “Users”, then you can create Orchard user from there. Every Orchard user has a unique User ID (_orchardServices.WorkContext.CurrentUser.Id) which is generated when create that user in Orchard. In CRM contact entity, there is a system attribute call externaluseridentifier which uses to store the Orchard User ID, this is by design but you can use a different attribute to do so by changing the source code of Orchard CRM.

When an Orchard User login to any of the navigation pages, Orchard will pass the User ID to CRM; CRM will try to match the User ID in contact. externaluseridentifier, if there isn’t a match, then create a new contact record with the User ID; otherwise use that CRM contact record for operations. So each Orchard User will map to a contact record in CRM, and Orchard User can operate as a CRM Contact on the portal website, for example, opening a new case, making an order, schedule an appointment etc. 

Now, if you have got the above steps correctly, you should be able to browse the Orchard CRM Portal via: http://YourAzureURL/DynamicsCRM/

Enjoy Orchard CRM! :)


29 June 2014

Orchard CRM v1.8 - Dynamics CRM 2011/2013 Portal for Orchard

Since last year the Orchard CRM v1.0 released, I have got many feedbacks and letters of thanks from the community. It has been used for the CRM Portal proof of concept as well as production usage with enhancement.

Today I'm pleased to release the new version of Orchard CRM v1.8 (based on Orchard v1.7.3, support Orchard v1.6 and above), the following functions are available, it can be extended (functionality, security etc.) to support your business case.
- My CRM Profile
- My CRM Cases
- My CRM Customers
- My CRM Orders and Orders From My Customers
- CRM Articles
- CRM Service Calendar

The new version is still based on .Net Framework 4.0 (not 4.5) using Dynamics CRM 2013 service context and dll files. This version supports Microsoft Dynamics CRM 2011/2013 Online, On Premise and Partner Hosted.

Enjoy the free CRM Portal and feedbacks are welcomed.


25 June 2014

New Book Review: Microsoft Dynamics CRM 2013 Marketing Automation



This book is written by Alok Singh and Sandeep Chanda at Neudesic.

The target audience of this book is anyone who wants to implement effective marketing strategies using Microsoft Dynamics CRM 2013. It starts with the current marketing analysis and concluded the important of Target Marketing: "Marketing is now a revenue process that is not about broadcasting the product information to all, it's about targeting and nurturing relationships with prospects from an early stage until they become ready to buy."

The book then reflects the present Marketing challenges in which the right automation tools can help to run the modern Marketing activities, as well as closing the gap between Sales and Marketing by providing a shared customer data repository which is where CRM coming from, follows with what can CRM also help on Marketing activities, such as Targeting, Automation and Execution, Close looping and Revenue Management by Collaboration with Sales. And then explains how CRM can help to effectively manage Leads and render Lead Funnel in each stages (Lead generation >> Lead nurturing >> Lead scoring and conversion >> Sales opportunity and recycling >> Post sale loyalty.

This book begins with overall how CRM can help on Marketing Automation, and then introducing how Microsoft Dynamics CRM 2013 can be used to implement those activities.

The book uses the step-by-step approach to demonstrate the following Marketing activities with Microsoft Dynamics CRM 2013:
  * How to build a Marketing list with target customers, examples like the revenue, size of purchase and profitability.
  * How to build and execute flexible Marketing Campaign and keep everything on track.
  * How to measure the Marketing Campaign with ROI, as well as reconcile the campaign response.
  * How to manage the Campaign Response and its lifecycle, as well as converting them into lead and opportunities. Also measuring the response with CRM reports.
  * How to virtualise and analyse Marketing data with CRM chart and dashboard, as well as managing goals using key metrics.
  * How to enhance CRM Marketing with ISV solutions: ClickDimensions and CoreMotives, using email marketing and web tracking, social integration and nurture marketing features.

The only down size I found in the book was not clear (need more details) about How to bind your Marketing strategy and measure ROI with Dynamics CRM in more detail, maybe some real world example could help here.

Overall, this is a kind of book I like and enjoy to read - easy reading with screenshots, small but focused. It can drive you through from Theory to Implementation for a particular area, in this case it's the Marketing module in CRM.

Thank you for writing it.

Jim Wang
June 2014