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><fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false"><entity name="account" enableprefiltering="1" prefilterparametername="CRM_FilteredAccount"><attribute name="new_shortname" /><attribute name="address1_city" /><attribute name="new_federal_stateid" /><attribute name="new_countryid" /><attribute name="name" /><attribute name="address1_postalcode" /><attribute name="accountid" /><order attribute="name" descending="false" /></entity></fetch></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><fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="itvt_customer_pricelist" enableprefiltering="1" prefilterparametername="CRM_Filtereditvt_customer_pricelist">
<attribute name="itvt_name" />
<attribute name="createdon" />
<attribute name="itvt_payment_termsid" />
<attribute name="ownerid" />
<attribute name="itvt_number" />
<attribute name="itvt_incotermsid" />
<attribute name="itvt_accountid" />
<attribute name="itvt_customer_pricelistid" />
<order attribute="itvt_name" descending="false" />
</entity>
</fetch></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!!!