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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 19.11.2011, 04:20   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
Microsoft Dynamics CRM Team Blog: Data management for Activity Feeds entities
Источник: http://blogs.msdn.com/b/crm/archive/...-entities.aspx
==============

We just released Activity Feeds for Microsoft Dynamics CRM. With most new features come the additional amount of data introduced with it and this is also true for Activity Feeds.


Every time a user creates a post or a comment, a record is created. Every time an auto post is generated, another record is created. With this in mind, prior to releasing this feature we made sure that you have an easy way to manage the data generated by Activity Feeds.

We enable the Activity Feeds entity, Posts, for Bulk Delete jobs. You can create your own bulk delete jobs from the user interface or from the SDK to clean up the Activity Feeds data based on your criteria.

Here is a quick snapshot on creating bulk delete job from the UI to clean up Posts entities.

1. Under Settings -> Data Management -> Bulk Record Deletion, create a new bulk delete job.

2. The bulk delete wizards will lead you to the look up dialog, where you should select the Posts entity type.

3. You can define your search criteria by Source, ModifiedOn, CreatedBy, CreatedOn. For example, to delete AutoPost that has not been commented for X months, you can specify Source = AutoPost and Modified On Older Than X



4. Just like any bulk delete job, you can specify the frequency of the run. Continue to the wizard and Submit.



5. All running and completed bulk delete jobs are displayed in these Bulk Record Deletion grid, but the master (recurrence) record itself is displayed under System -> System Jobs under the Recurring System Jobs View.



Another way is to create bulk delete job from SDK. Here is a code snippet on triggering one bulk delete request from SDK to clean up Post entities.

QueryExpression query = new QueryExpression(Post.EntityLogicalName);

// create your filter criteria…

BulkDeleteRequest request = new BulkDeleteRequest();

request.QuerySet = new QueryExpression[] { query };

request.JobName = "Activity Feeds Data Management";



request.SendEmailNotification = false;

request.ToRecipients = new Guid[0];

request.CCRecipients = new Guid[0];

request.RecurrencePattern = string.Empty;

request.StartDateTime = DateTime.Now;

BulkDeleteResponse response = (BulkDeleteResponse)_serviceProxy.Execute(request);



So there you go, 2 ways to manage your Activity Feeds data. I hope you find this helpful.

Maya Widyasari

Microsoft Dynamics CRM Tester




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

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Microsoft Dynamics CRM Team Blog: Microsoft Dynamics CRM’s Mashable Ecosystem to Change Customer Care Market? I think So… Blog bot Dynamics CRM: Blogs 0 20.10.2011 03:24
CRM DE LA CREME! Configuring Microsoft Dynamics CRM 4.0 for Internet-facing deployment Blog bot Dynamics CRM: Blogs 0 18.08.2009 11:05
Microsoft Dynamics CRM Team Blog: CRM Online: Reporting Options Blog bot Dynamics CRM: Blogs 0 18.06.2009 06:14
Microsoft Dynamics CRM Team Blog: Troubleshooting the Microsoft Dynamics CRM Client for Outlook Blog bot Dynamics CRM: Blogs 0 30.05.2009 12:05
Microsoft Dynamics CRM Team Blog: List Web Part for Microsoft Dynamics CRM 4.0 Deployment Scenarios Blog bot Dynamics CRM: Blogs 0 30.01.2009 22:05

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

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

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