AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 27.09.2011, 21:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
ukcrm: Tracking Activity History
Источник: http://blogs.msdn.com/b/ukcrm/archiv...y-history.aspx
==============

22 Acacia Avenue…

For a recent client demo, I needed to build a dashboard that would identify key accounts/contacts that hadn’t been contacted recently. Although all the activity data needed is in the CRM database, it’s not easy to consume within a dashboard.

For example, suppose I wanted a chart of contacts who had not had a phone call in the last 3 months, segmented by role. I couldn’t find a way to display this out of the box. Luckily, with a small amount of configuration and customisation, I was able to solve the problem. The screenshot below is a dashboard showing the 6 main activity types (appointment, e-mail, fax, letter, phone call and service appointment) by role (decision make, influencer, employee).



To create this I first configured 6 additional fields on the contact entity in order to track the last activity date of the main activity types (appointment, e-mail, fax, letter, phone call and service appointment). Then I configured 6 views to identify contacts who had not been contacted in the last 3 months, one view for each activity type. Next I configured 6 charts, one for each activity type, to show activity by role. Finally, i configured a new dashboard to display each chart, filtered by the relevant view.

Now, all that is left to do update the new fields on a contact record whenever they participate in an activity. This is where we need a little “plug-in” magic. I created a plug-in that would execute on the SetStateDynamicEntity event for each of the main activity types. The plug-in loops through each PartyList field (To, From, Cc, Bcc, Organizer, Required Attendees, Optional Attendees etc.), and every time it finds a CRM contact, it updates the appropriate last activity date field for that contact. All fairly simple really. Just one note of caution, in large CRM deployments you might have a lot of activity tracking going on, which means the plug-in gets fired a lot. In order to reduce the likelihood of performance issues, I chose to trigger the plug-in on Asynchronous events.

If you want to try this out, I have packaged up my solution (both managed and unmanaged solution packages) and made it available for download here. The solution package contains the following:
  • A modified contact entity containing 6 new fields, 6 new charts and 6 new views. I have not updated any of the out-of-the-box forms or views, so this won’t overwrite any customisations you have made to the contact entity.
  • A plug-in to handle the SetStateDynamicEntity event on the 6 main activity types (appointment, e-mail, fax, letter, phone call and service appointment).
  • A dashboard to display the 6 new charts.
In addition, I have included the source code for the plug-in, as well as an Excel spreadsheet containing some sample contact data that you can use to test the solution. Using the same solution, and adding some multi-series charts (see the CRM product group blog for more details - CRM 2011 Charts – Know the Real Potential ~ Part I), here’s an example of a slightly more complex dashboard I put together for another demo.



This posting is provided "AS IS" with no warranties, and confers no rights.

Laughing Boy Chestnuts Pre-School Chain Gang




Источник: http://blogs.msdn.com/b/ukcrm/archiv...y-history.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Microsoft Dynamics CRM Team Blog: How to control surfacing of Custom Activity Blog bot Dynamics CRM: Blogs 0 17.05.2011 01:14
Microsoft Dynamics CRM Team Blog: Upgrading a CRM 4.0 Custom Workflow Activity to CRM 2011 Blog bot Dynamics CRM: Blogs 0 18.11.2010 01:12
Microsoft Dynamics CRM Team Blog: Social Activity Dashboard for Microsoft Dynamics CRM 2011 Blog bot Dynamics CRM: Blogs 0 16.11.2010 22:11
Ошибка бизнес-процесса Tarasov E Dynamics CRM: Разработка 9 18.02.2010 14:02
ukcrm: UKCRM Is Now Tweeting Blog bot Dynamics CRM: Blogs 0 10.07.2009 17:05

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 03:19.