Welcome to our website

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. ed ut perspiciatis unde omnis iste.

Posts mit dem Label CRM 2011 Offline Client werden angezeigt. Alle Posts anzeigen
Posts mit dem Label CRM 2011 Offline Client werden angezeigt. Alle Posts anzeigen

Donnerstag, 16. Februar 2012

Dynamics CRM 2011 - Getting Dynamics CRM 2011 Data into Outlook

Dynamics CRM 2011 - Getting Dynamics CRM 2011 Data into Outlook

One of the first questions people ask when they begin using the Microsoft Dynamics CRM 2011 Outlook Client is “how can I control what CRM data appears in Outlook”? Syncing too much data can reduce performance, but you also want to have information at your fingertips when you need it.
In Microsoft Dynamics CRM 2011, the Outlook Data Filters feature allows users to take control of what CRM data appears in Outlook. In CRM 4, users had the ability to specify what data they wanted to take Offline (i.e. when they weren’t connected to CRM), and in CRM 2011 we’ve expanded this feature to also allow users to specifically control what data syncs to Outlook’s own folders, like the Calendar and the Tasks pane.
This blog post explains what the filters are and how to use them effectively. You should read it if you would like to see additional CRM data in Outlook or Offline mode, or conversely, if sync is taking longer than you’d like.
Warning: With great power comes great responsibility. If you run into any issues, follow the instructions in the “Resetting your Filters” section to reset your filters to your organization’s standard settings.
The Filters Dialog
The filters dialog can be accessed in Outlook 2003 and 2007 by navigating to CRM->Outlook Filters, and in Office 2010 by going to the File backstage menu, then clicking CRM, pressing the ‘Sync’ button dropdown and selecting the ‘Outlook Filters’ option.
clip_image002clip_image004
Office 2003 & 2007 Office 2010

After you open the filter dialog, you’ll see something like this:
clip_image006
You can see that the dialog contains a list of rows (these are the filters) for different Outlook entity types, such as Contact, Task and Appointment (note that email is synced with CRM differently and is not managed by this feature). There is also a dropdown which lets you change the view to show Offline Synchronization Filters … what are these? Time for some definitions:

Outlook Filters
Outlook filters affect CRM items which have counterparts in Outlook, like Tasks, Contacts and Appointments. They control what data gets synced to Outlook folders, such as the Contacts folder or Calendar.
Offline Filters
Offline filters affect the CRM folders in Outlook, and they specify what data gets stored on your machine when you disconnect from the internet (a.k.a. “Go Offline”). If you’re always on the move and you find that you’re missing CRM data while Offline, you’ll want to modify your Offline filters.
Alternatively, if you’re finding that going Offline is taking a long time, you can remove or deactivate some of your data filters to reduce the amount of data which needs to be synced.

You also might be wondering what that ‘System Filters’ tab is referring to:
User Filters
These filters belong to you, and they dictate what information gets synced down from CRM to Outlook.
System Filters
These filters are set by the system administrator, and they apply to everyone.

Modifying a Filter
Filters work cumulatively – each filter defines a set of data which will sync to Outlook. For example, click on the ‘My Outlook Contacts’ filter and a new dialog will come up showing the filtering conditions for this filter. You can see that we’ve specified that any Contact which is owned by us and which is set to be Active will be synced to our Contacts folder.
clip_image008
Now, let’s say that we didn’t want all of our CRM contacts to appear in Outlook, but only the Contacts from our hypothetical partner firm, Contoso. We’d add another clause to the filter condition as follows:
clip_image010
After adding this condition, we can Save and then close the dialogs – next time you sync with CRM, all CRM Contacts (including Outlook contacts which you’ve tracked) will disappear from your Contacts folder unless they belong to Contoso.
Creating a new Filter
So modifying filters is easy enough, but what about adding new ones? As we said, filters are cumulative, so if you create multiple filters for a single entity type, then entities which match any of the filters will be synced.
By default, Outlook will only take the accounts you own Offline, even if you have access to other accounts. Let’s run through creating a simple filter that will make sure that all accounts which were modified in the last week are synced Offline. We’ll leave the existing filter in place as well so that you’ll still get all of your personal accounts, even if they haven’t been changed recently.
To start with, choose “Offline Synchronization Filters” from the dropdown and then click “New”.
clip_image012
You’ll see a new filter dialog come up. Account should be selected as the default entity, but you can pick another entity type from the dropdown if you wish:
clip_image013
Then we can go on to define some conditions for our filter, namely that the “Modified On” date should be within the “Last 7 Days”.
clip_image015
We can then save the filter, which prompts us to choose a name.
clip_image016

Microsoft Dynamics CRM 2011 : Using Microsoft Dynamics CRM for Outlook - Configuring Synchronization Filters


Microsoft Dynamics CRM 2011 : Using Microsoft Dynamics CRM for Outlook - Configuring Synchronization Filters

6/28/2011 4:00:35 PM
As you learned in the previous section, offline synchronization filters define which data Microsoft Dynamics CRM for Outlook with Offline Access will copy from the server to your offline database. During the installation process, Microsoft Dynamics CRM creates more than 35 different offline synchronization filters for the records in your system. If you plan to work offline frequently, you should examine these default offline synchronization filters to make sure you’ll have access to the information you need when offline.

Two common modifications to the default local data groups are:
  • Including all reports to run offline, because the default local data group downloads only the reports you own to the offline database.
  • Including custom entities, because the default local data group does not include any custom entities.

Note:
You can only modify your offline synchronization filter settings when you are online.

If your computer uses the online-only version of Microsoft Dynamics CRM for Outlook, your system still contains synchronization filters, but the software uses them for a different purpose. Online-only users of Microsoft Dynamics CRM for Outlook configure their Outlook synchronization filters to specify which types of records the software should copy from the server to your Outlook file. By default, Microsoft Dynamics CRM for Outlook includes Outlook synchronization filters that will copy contacts, phone calls, tasks, and other records that you own from the CRM server into your Outlook file.


You can delete, deactivate, or modify synchronization filters, or add entirely new data groups if you want. Some users like to create synchronization filters so that Microsoft Dynamics CRM copies all of the contacts for the accounts and opportunities that they own.
In this exercise, you will modify the offline synchronization filters for Microsoft Dynamics CRM for Outlook with Offline Access to include contacts you modified in the past 30 days in your offline database.

Note:
When you run reports offline, the reports will include only data from the offline database, which is typically a subset of the entire database. If you need to report on the entire database, make sure you go online first.


Note:
SET UP Start Outlook with Microsoft Dynamics CRM for Outlook with Offline Access installed, if necessary, before beginning this exercise.

  1. On the Outlook ribbon, click the File tab, and then click CRM.
  2. Click the Synchronize button, and then click the Outlook Filters option that appears on the submenu. The Outlook Filter dialog box appears.
  3. In the picklist, select Offline Synchronization Filters.
  4. In the grid toolbar, click the New button. The New Filter dialog box appears.
  5. In the Look For picklist, select Contact.
  6. Click the Select link, and choose Modified By.
  7. Click the Select link again, click Modified On, and then click On. In the new picklist that appears, choose the Last X Days option.
  8. In the text field that appears, enter 30.


  9. In the toolbar, click the Save button. A dialog box will appear, prompting you to name this filter. Type Contacts modified by current user in the last 30 days. Then click the OK button.
  10. Click the Close button in the upper-right corner to close the window.
  11. Click OK to close the Outlook Filter window.
  12. On the ribbon, click the Go Offline button. Microsoft Dynamics CRM will run with offline synchronization with this new filter in place. If you have modified contacts you don’t own in the last 30 days, you will see those contacts downloading in the progress window.

Donnerstag, 2. Februar 2012

CRM 2011 – Offline and Outlook Filters and Templates: Local Data Groups

Introduction

The way in which CRM controls what users download to their online and offline Outlook clients has been improved with the 2011 version, as you can read here. However, in my opinion some of this functionality is not immediately clear. This article is meant to provide a complement to the MSDN article cited above by explaining these features in more detail. In the next article we’ll see how the CRM 2011 Views and Filters Toolkit can be used to perform tasks related to Filters and Templates, as well as to access some of the functionality that until now was only available through the CRM API.

Some Terminology

In the context of this article there are four terms that, in various combinations, mean different things. Let’s note down few facts about each to act as reference while looking at the functionality. The terms are Outlook, Offline, Filter and Template.

Outlook

This term refers to synchronization capabilities of the CRM Outlook Client when it’s online. The standard Outlook Client is always online. The Offline Outlook Client is online when the user has pressed the “Go Online” button.

Offline

This term refers to synchronization capabilities of the CRM Outlook Client when it’s offline. The standard Outlook Client can never be offline. The Offline Outlook Client is offline when the user has pressed the “Go Offline” button.

Filter

A filter is a query that CRM uses to determine what data should be synchronized between the CRM server and the Outlook Client. Filters can be of two types: System Filters and User Filters.

Template

This is a template query that can be instantiated as a User Filter for a particular user.

Synchronising Data: Filters

Outlook vs. Offline

Outlook synchronizes only few entities when online, such as contacts, appointments, tasks etc. If the user has installed the Offline CRM Client, Outlook synchronizes much more data than just contacts and activities when going offline. In theory one could choose to have the whole database available offline, which would give an offline user the ability to access the same set of data as if they were working online. To decide what to synchronise in both scenarios, i.e. to determine Local Data Groups, CRM relies on filters, which are called Outlook Filters or Offline Filters depending on whether they apply to when Outlook is online or offline respectively. In addition, each filter can be a System or User filter.

System vs. User Filters

System Filters are stored in the SavedQueryBase table and they are valid for all users. User Filters are stored in the UserQueryBase table and they apply only to their owner. Think of this difference as the difference between a System View and a Personal View. Users are empowered to maintain their User Filters, as described here, but only administrators can maintain System Filters. In addition, administrators can control the deployment of User Filters via the template mechanism discussed later in this article.

Filter Types

To recap, the following table shows all available filter types and their main attributes.
On / Off S / U QueryType Table Description
Online System OutlookFilters (256) SavedQueryBase Determines which data to synchronise when online. Applies to all users.
Offline System OfflineFilters (16) SavedQueryBase Determines which data to synchronise when offline. Applies to all users.
Online User OutlookFilters (256) UserQueryBase Determines which data to synchronise when online. Applies to one user only.
Offline User OfflineFilters (16) UserQueryBase Determines which data to synchronise when offline. Applies to one user only.
  A consideration related to the table above is that the QueryType attribute is technically not the same for all filters, since filters can be either savedquery or userquery CRM entities, depending on whether they are System or User Filters respectively. Therefore, the QueryType attribute can be of type SavedQueryQueryType or UserQueryQueryType. The two are not equivalent: you can find the definition of the two types here and here.

Filter Templates

As explained above, users are empowered to maintain their User Filters, but administrators can control the deployment of User Filters via Filter Templates. Filter Templates are queries that can be instantiated as User Filters. Templates reside in the SavedQueryBase table (the instantiated User Filters are of course in the UserQueryBase table). Each User Filter record contains a reference back to the filter in the UserQueryId.ParentQueryId attribute. Like Filters, Templates can be for offline or online synchronisation, as shown in the table below.
On / Off QueryType Table Description
Online OutlookTemplate (131072) SavedQueryBase Instantiates a corresponding User Filter of type OutlookFilters.
Offline OfflineTemplate (8192) SavedQueryBase Instantiates a corresponding User Filter of type OfflineFilters.
  A Filter Template can be manually instantiated as a User Filter through a call to the InstantiateFiltersRequest request.

Default Filter Templates

A template can be marked as default by setting its SavedQuery.IsDefault attribute. Each entity can have only one filter template that is marked as default. If you create a custom entity, and set the IsAvailableOffline property, a default filter template is created automatically. When new users are added to the system, all templates marked with the IsDefault attribute will cause User Filters to be instantiated to those users automatically. In addition, all User Filters can be manually reset (which includes re-instantiating all the applicable templates) through the ResetUserFiltersRequest request.

Example

To see how the considerations above translate into reality, get your hands on a CRM 2011 instance and run the following query:
1 SELECT
2 SavedQueryId, Name, Description, QueryType, IsDefault
3 FROM
4 SavedQuery
5 WHERE
6 QueryType IN (131072, 8192) AND ReturnedTypeCode = 2
  If the default configuration has not been modified extensively, the query should return the following results:
SavedQueryId Name Description QueryType IsDefault
65D2CBA8-EEDA-4419-B03B-D9C2D8272E51 My Contacts Contacts owned by me 8192 1
58DC4BEE-60B7-4A84-987F-800296B71404 My Outlook Contacts Contacts Syncing to Outlook 131072 1
  You can see that there are two Filter Templates for contacts in the SavedQueryBase table: one for Online and one for Offline filters. If you look in the UserQueryBase table for a particular user:
1 SELECT TOP 2
2 Name, Description, QueryType, ParentQueryId
3 FROM
4 UserQuery
5 WHERE
6 QueryType IN (256, 16) AND ReturnedTypeCode = 2
7 ORDER BY OwnerIdName
  You should get the following results:
Name Description QueryType ParentQueryId
My Outlook Contacts Contacts Syncing to Outlook 256 58DC4BEE-60B7-4A84-987F-800296B71404
My Contacts Contacts owned by me 16 65D2CBA8-EEDA-4419-B03B-D9C2D8272E51
  Each filter in the table above is an instance of its corresponding template, as confirmed by the fact that the ParentQueryId attribute points back to the template.

Conclusions

Hopefully this article sheds some light into Filters, Templates and how they are related to Local Data Groups. The next article will show how the CRM 2011 Views and Filters Toolkit can be used to perform complex tasks related to Filters and Templates, as well as to access some of the functionality that until now was only available through the API. http://msdn.microsoft.com/en-us/library/gg328205.aspx  

Replicate Local Data Group (Offline Client / Outlook)

If you are using offline client application in CRM implementation, you will notice that configuring local data group is a very painful task for all developers. For me, most of our customers are using offline client applications in their daily operations. We have to configure local data group for all laptops based on their user roles and configuration. It took more than one and half hour to finish the whole configuration setup for each laptop.
Last year, one of our customers suggested a console application called MSCRM: Automate Local Data Group Creation. It is very helpful application for us. We need to setup configuration for only one laptop (one user role) and copy it to the rest of users' laptops. Amazingly, it took only a few minutes to finish the whole process. But, there still has some draw backs. It required a few configuration steps to finished very carefully. Here is the list of steps for configuration:
  1. Go to SQL server and delete some records
  2. Create one text file which contains the list of views that you want to copy, and
  3. Run batch program with pre-defined parameters/commands, etc.
In short, it is not possible to ask users to help configuration on themselves. They still need supervision of professionals. One mistake can screw up the whole database and operations.
So, I decided to do re-engineer works based on existing application. I changed existing web service calles to CRM 4.0, take out the first step (SQL delete process) and add user interface to automate the whole process. Thanks to David Jennaway for contributing his knowledge, idea and source code to community.
Below is the screen shot of my "Replicate Local Data Group" application:
You can run this application from any location/computer if you have access to their CRM application.
Caution: Please backup your CRM user database first before running this application. Application will delete all Local Data Groups of destination users to prevent duplication.
System Requirement:
  • .NET Framework 2.0
Access Matrix:
  • The login user who is connecting to CRM must be a member of PrivUserGroup. If you done more thant one installation for CRM, you will fine multiple PrivUserGroup in AD. Please make sure you are using correct one for login user.
  • All replicate users must have CREATE, READ, WRITE and DELETE access to their own records (User) in "Saved View" entity. You can find "Saved View" entity under Core Record tab of your user role.
Download Link:
Reference:



http://www.dynamicsconsulting.de/2012/02/02/crm-2011-offline-and-outlook-filters-and-templates-local-data-groups/

www.biztom.de

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Free Samples By Mail