CRM Reports and “PreFiltering” with multiple datasets

We recently had a business requirement where a user wanted to run a report from within an open Order entity.  They wanted to click on the “Reports” menu option, select a report, and the result would display using the currently open order id as the filter criteria.  The report also had the additional complexity that required multiple datasets.

Because there was a requirement for running the report from within the open order we did not want the user to have to enter any filtering criteria.  So this was a perfect opportunity to use the mysterious “Pre-Filtering” capability in CRM.

In case you are not aware, Pre-Filtering is a method of building the SQL query in such a manner that when the report is executed, CRM will dynamically add filtering to the report based on the currently opened entity record.  The CRM report thereby becomes context sensitive.

There are many blog postings regarding pre-filtering so I will not go into them now.  Here is a useful blog that does well in explaining how to use pre-filtering –

Posted in SQL Report | Tagged , , , | Leave a comment

Use Advanced Find to locate Contacts (or Accounts) with Attachments

A customer recently asked me how they could use the Advanced Find mechanism in Dynamics CRM to locate Contacts with attachments in their Notes tab.  Not having ever been asked this question I decided to perform a search of the Net.

This link ( lead me to the answer, which is yes, it can be done.

Click on Advanced Find and select an entity.

In the field list select “Notes (Regarding)”.

In the subsequent field list for Notes, select “File Size (Bytes)”.

In the criteria area select “Is Greater Than”.

In the value text box enter “0” (zero).

Click Find.


Posted in Uncategorized | Leave a comment