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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 01.07.2013, 18:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,626 / 848 (80) +++++++
Регистрация: 28.10.2006
crminthefield: Dynamic Activity Reporting using FetchXML
Источник: http://blogs.msdn.com/b/crminthefiel...-fetchxml.aspx
==============

In a previous post I wrote about some of the differences and limitations around custom reporting in Microsoft Dynamics CRM, specifically of using FetchXML vs. the SQL Filtered Views. Because CRM Online is limited to the use of FetchXML, I have seen many of our online customers run into issues with activity reporting. There are out of the box reports available but do not allow flexibility when it comes to customizing them to fit the specific customer’s needs. Because of this limitation when one of my customers had the requirement to be able to run a report out of CRM that returned all activities that were “Set Regarding” an Account or their related Opportunities and/or Contacts it required a deeper dive into the capabilities of activity reporting using FetchXML. As I was developing this report I wasn’t able to find a lot of comparisons so I thought I would share what I did.

Through a few different iterations we were able to develop a custom activity report, using FetchXML that allows them to run an activity summary for selected Account or that returns activities that are set regarding either an account or that related accounts contacts or opportunities (@Accountid) and also filters based on these other parameters:

Parameter

Field

@Accountid

Regardingobjectid

@EventDateFrom

Scheduledend

@EventDateTo

Scheduledend

@ActivityType

Activitytypecode

@Status

Statecode

 

By using the link-type='outer' I was able to return the data I needed including custom columns from the phonecall and appointment entity. Note: performance should be considered when utilizing the outer link-type, for this particular customer they were okay with the fact that performance of the report may be impacted because their business need for this information is so high, they also put heavy restriction on who can run the report and the time of day that the report is run.

The query I used is:

I was then able to use a table in SQL Server data tools (A.K.A. BIDS) report builder to group and format the data in the way the customer had requested. 

 

Hope this was helpful! For additional information on FetchXML performance, specifically using the isquickfindfields function see my fellow PFE Sean McNellis’s blog post here: Take advantage of better query performance.

If you are interested, our PFE team is ready to help you with this, we can assist with query examples and various other engagements to help you improve your CRM reports and performance. In addition, we have many other services we offer such as reporting workshops, developer training, admin workshops, and code reviews.  If you would like to have another Microsoft PFE or I visit your company and assist with the ideas presented on our blog, contact your Microsoft Premier Technical Account Manager (TAM) for booking information.  For more information about becoming a Microsoft Premier Customer email PremSale@microsoft.com.

Thanks!

Sarah Champ

Microsoft Premier Field Engineer





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

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
crminthefield: Custom Reporting in Microsoft Dynamics CRM - Fetch vs. Filtered Views Blog bot Dynamics CRM: Blogs 0 30.11.2012 08:11
crminthefield: ReportingAccountMemberOfSecurityGroupValidator Error When Installing CRM 2011 Reporting Extensions Blog bot Dynamics CRM: Blogs 0 30.11.2011 23:11
Microsoft Dynamics CRM Team Blog: How to control surfacing of Custom Activity Blog bot Dynamics CRM: Blogs 0 17.05.2011 01:14
Ошибка бизнес-процесса Tarasov E Dynamics CRM: Разработка 9 18.02.2010 14:02
CRM Programmer: Dynamic hyperlink in Reporting Services 2008 Blog bot Dynamics CRM: Blogs 0 13.10.2009 02:05

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

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

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