I realise it has been a while since I last posted, but I have been mega-busy working with some of the top UK financial services organisations and selling Microsoft Dynamics CRM 2011 into various divisions such as business banking, corporate banking, wealth management and investment banking. Just from a personal productivity perspective, the latest version of our product is so much quicker to configure compelling demos, that I can now crank out a decent demo in less than half the time it took with CRM 4.0. What’s more the new features such as charting, dashboards, goal management, team-ownership of records are really resonating with Business Decision Makers (BDM) when comparing us against the competition.
I particularly like the new data import functionality, which combines the best bits of the CRM 4.0 data import and data migration tools and adds additional capabilities. It’s not perfect (e.g. no ability to import many:many relationship data), but hey, that’s why our product teams in the USA and India are flat out working on CRM v.next 🙂
I wanted to share some of the more interesting pieces of the demos I have been working on, so I will start with a security requirement that cropped up recently.
The client, a corporate & investment banking (CIB) division of a large retail bank, was looking for additional security over-and-above the role-based security model of CRM 2011. They wanted the ability for the owner of a record (either an individual, or members of the owning team), to restrict access to that record simply by selecting a “Private” check-box on the form.
Obviously, adding a new field is simplicity itself, but what about the business logic? Looking back at one of my previous posts from October 2007, I achieved something similar when trying to restrict which queues would show up in any view. So I converted the code from VB.NET to C# and, pulled some sample plug-in code from the new SDK and put together a very simple solution.
Every time you access a view in CRM user interface, it causes the CRM platform to execute a query by raising a RetrieveMultiple request. A plug-in that intercepts this request, can modify the query before it is executed by the CRM platform, and this is exactly what I have done in the code below.
No matter what the original query, the QueryExpression object can easily be modified to filter out records where the “Private” flag is set, and the the user is not the record owner.
In order show this in operation, I developed a sample Call Report solution which you can download here. Once you have imported this into your CRM 2011 environment, please feel free to customise to your own requirements.
This posting is provided “AS IS” with no warranties, and confers no rights.