Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Prefiltered FetchXML Report not working on custom entity

$
0
0

Hi guys,

i have a FetchXML Report for Dynamics365 which is using prefiltering and it's working as expected:

...<DataSets><DataSet Name="DataSet1"><Query><DataSourceName>DataSource1</DataSourceName><QueryParameters><QueryParameter Name="CRM_FilteredAccount"><Value>=Parameters!CRM_FilteredAccount.Value</Value></QueryParameter></QueryParameters><CommandText>&lt;fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false"&gt;&lt;entity name="account" enableprefiltering="1" prefilterparametername="CRM_FilteredAccount"&gt;&lt;attribute name="new_shortname" /&gt;&lt;attribute name="address1_city" /&gt;&lt;attribute name="new_federal_stateid" /&gt;&lt;attribute name="new_countryid" /&gt;&lt;attribute name="name" /&gt;&lt;attribute name="address1_postalcode" /&gt;&lt;attribute name="accountid" /&gt;&lt;order attribute="name" descending="false" /&gt;&lt;/entity&gt;&lt;/fetch&gt;</CommandText><rd:UseGenericDesigner>true</rd:UseGenericDesigner></Query>
...<ReportParameters><ReportParameter Name="CRM_FilteredAccount"><DataType>String</DataType><Prompt>CRM Filtered Account</Prompt></ReportParameter></ReportParameters>
...


Then there is a second report which is build up in the same way (i assume).
But there i don't have the option "Run on Selected Records":
...
<DataSets>
    <DataSet Name="DataSet1">
      <Query>
        <DataSourceName>DataSource1</DataSourceName>
        <QueryParameters>
          <QueryParameter Name="CRM_itvt_customer_pricelist">
            <Value>=Parameters!CRM_Filtereditvt_customer_pricelist.Value</Value>
          </QueryParameter>
        </QueryParameters>
        <CommandText>&lt;fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false"&gt;
  &lt;entity name="itvt_customer_pricelist" enableprefiltering="1" prefilterparametername="CRM_Filtereditvt_customer_pricelist"&gt;
    &lt;attribute name="itvt_name" /&gt;
    &lt;attribute name="createdon" /&gt;
    &lt;attribute name="itvt_payment_termsid" /&gt;
    &lt;attribute name="ownerid" /&gt;
    &lt;attribute name="itvt_number" /&gt;
    &lt;attribute name="itvt_incotermsid" /&gt;
    &lt;attribute name="itvt_accountid" /&gt;
    &lt;attribute name="itvt_customer_pricelistid" /&gt;
    &lt;order attribute="itvt_name" descending="false" /&gt;
  &lt;/entity&gt;
&lt;/fetch&gt;</CommandText>
        <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
      </Query>
...
<ReportParameters>
    <ReportParameter Name="CRM_Filtereditvt_customer_pricelist">
      <DataType>String</DataType>
      <Prompt>CRM Filtered itvt_customer_pricelist</Prompt>
    </ReportParameter>
...
itvt_customer_pricelist is a custom entity.



Of course both of those report are configured like that:


So does anyone of you have any idea why i can't run my Report2 on selected Records?
I think i tried almost everything with @ in front of the parameter, using the parameter without "Filtered" in front of it.
But nothing has worked, so i hope you'll be able to help out.

Thanks for your support!!!

Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>