CRM Extensions

CRM Usage Report

One of customer wanted to have the possibility to see who and when was working in CRM. I knew that MVP David Jennaway had created such solution based on IIS’s logs. No matter how I tried – I failed to implement it. Logs weren’t written to log database. Also this approach doesn’t work in IFD deployment scenario.

So I left this idea and begun develop own solution.

Solution will consist of 3 parts:
1. DataBase.
2. Plugin which will fill log database (it will registered on most usable messages – Execute, RetrieveMultiple, Retrieve, Create, Update, Delete).
3. Report which will display the data.

DataBase. I decided not to use the CRM database to store users’ activity information because of performance. I’ve created table to store data. This table can be created with following script:



Plugin function is to retrieve information about user, organization and IP address of the user’s computer. The code of the plugin:


It is required to pass connection string to log DB in config property at the plugin’s step registration. Sample how to register the plugin’s step:


SQL Query of the report:



Source code of plugin and report:


  1. You are my CRM hero! Love this! Now if only you could get a SSIS project that imports (create, Update) from an external source together!!!!

  2. Hi Andriy,

    I am sorry about mis-spelling your name.
    I can store the data in a local DB. The part I am not sure of is, how to use plugins with the online version of CRM 2011? Would you be able to guide me in this respect? I am pretty new to CRM and would really appreciate your help and guidance.


  3. Hello Mike,
    It doesn't matter which kind of CRM client is used (Web or Outlook) – all calls are done using WebServices and that means that my plugin will be triggered. But why do you need such kind of functionality? CRM 2011 already has OOB user actions logging.

  4. Was just wondering since the Outlook client is always synching with CRM and I did not know if this would be making constant calls to CRM, and thus show that the user is "accessing" CRM when all they do is have their Outlook open. If they have Outlook open every day but don't touch CRM from within it, I wouldn't want that to qualify as "logging in."

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.