Tagging Microsoft Dynamics CRM Contacts
A Microsoft Dynamics CRM 4.0 user asked recently how to tag or categorize his CRM Contacts. He wanted to have a list of tags such as golf, baseball, accounting, etc with which he could easily tag users and organize them based on category. The categories will also be useful as classifications to use in building marketing lists.
This is pretty easy to do using basic Microsoft CRM customization.
1. Create a custom entity called “Category.” I set it as Organization owned, as no one will be owning a particular category. Set the display area to “Settings.” The form will contain just the name field—this is ok, that’s all we need. Click Save and Close.
2. Create another custom entity called “Contact Category. Again, select Organization ownership rather than user owned. Click the Primary Attribute tab, and set the primary attribute requirement level to “No Constraint.” Click Save (not save and close).
3. From the Contact Category entity customization, click N:1 Relationships. Select Contact as the Primary Entity. Under Relationship Attribute enter “Contact” as the Display Name. Under Navigation Pane Item for Primary Entity select “Use Custom Label” for Display Option and enter “Categories” as the Custom Label. We do this because we want the navigation bar link from a contact record to say “Categories.” Save and Close.
4. From the Contact Category entity customization, click N:1 Relationships. Under Relationship Attribute enter “Category” as the Display Name. Under Navigation Pane Item for Primary Entity select “Use Custom Label” for Display Option and enter “Contacts” as the Custom Label. We do this because we want the navigation bar link from a Catogory record to say “Contacts.” Save and Close.
5. From the Contact Category entity customization, click Forms and Views and double click on the form customization link. Remove the Name field from the form and add the Contact and Category fields created by the newly added relationships. You will also want to be sure to modify the Contact Category associated view to display the contact and category fields. Click Save and Close.
6. Publish the Contact, Category, and Contact Category entities. Refresh your browser.
7. In Microsoft CRM, click Settings and select the “Categories” entity from the navigation bar. By default it will appear on the bottom of the list. You can change its position in the list—see Organizing Settings Navigation Bar for more details. Add categories to the list by creating new Category records. Use the Save and New button to efficiently add multiple categories.
8. Now you will be able to easily tag your contacts. From a Contact record, click the side navigation bar link for Categories and add a category to the contact.
9. So say that John Smith has a new interest, Vegetable Gardening, which is not part of the list? CRM 4.0 makes it easy to add values on the fly. When you click “New Contact Category” from the John Smith record, when you click the lookup for Category, click the “New” button on the lookup form and define your new category. This will add the category to the list and add the category to the John Smith record.
10. So now that we have tagged our contacts, how do we find the contacts are tagged “Fishing?”
We can navigate to Settings—> Categories and open the record for the desired category. By clicking the side navigation link for contacts, you will see a list of all contacts that are tagged with “Fishing.”
You could also do an advanced find to get all contacts where related category entity Category equals “Fishing.”

