title: MS CRM 2011 FetchXml - Report Parameters don't get picked up when the report is deployed in CRM
body: <p>I am facing a problem when trying to pass dynamic parameters to a report created using fetchxml. When I see a preview of the report in BIDS I can enter the parameter values and the report works just fine, but the problem occurs when I try to run the report from CRM online. The report doesn't seem to pick the 'account' and 'account plan' values in CRM and the report is empty. FYI, 'account plan' is a custom entity I created. 
  I'd appreciate if someone can please take time and provide their inputs/suggestions on how I can sort this problem out.</p>
  
  <p>Here is some information from my fetchxml report...</p>
  
  <p>I have added the following report and query parameters to my report:-</p>
  
  <pre><code>    &lt;QueryParameters&gt;
        &lt;QueryParameter Name="@CRM_FilteredAccount"&gt;
          &lt;Value&gt;=Parameters!CRM_FilteredAccount.Value&lt;/Value&gt;
        &lt;/QueryParameter&gt;
        &lt;QueryParameter Name="@CRM_FilteredAccountPlan"&gt;
          &lt;Value&gt;=Parameters!CRM_FilteredAccountPlan.Value&lt;/Value&gt;
        &lt;/QueryParameter&gt;
      &lt;/QueryParameters&gt;
  </code></pre>
  
  <p>
      
        String
        CRM_FilteredAccount
      
      
        String
        CRM_FilteredAccountPlan
      
    </p>
  
  <p>This is the root entity tag:-</p>
  
  <p>&lt;entity name="account" enableprefiltering="true" prefilterparametername="CRM_FilteredAccount"&gt;</p>
  
  <p>where I am using the following filter:-</p>
  
  <pre><code>&amp;lt;filter type="and"&amp;gt;
    &amp;lt;condition attribute="statecode" operator="eq" value="0" /&amp;gt;   
    &amp;lt;condition attribute="name" operator="eq" value="@CRM_FilteredAccount" /&amp;gt;
  &amp;lt;/filter&amp;gt;
  </code></pre>
  
  <p>This is the link-entity tag:-</p>
  
  <p>&lt;link-entity name="opt_accountplan" from="opt_account" to="accountid"  visible="false" link-type="outer" alias="accountplan" enableprefiltering="true" prefilterparametername="CRM_FilteredAccountPlan"&gt;</p>
  
  <p>where I am using the following filter:-</p>
  
  <pre><code>  &amp;lt;filter type="and"&amp;gt;
     &amp;lt;condition attribute="statecode" operator="eq" value="0" /&amp;gt;
     &amp;lt;condition attribute="opt_name" operator="eq" value="@CRM_FilteredAccountPlan" /&amp;gt;
    &amp;lt;/filter&amp;gt;   
  </code></pre>