Hi, I'm running CRM 2013 on-premise. I've designed a number of SSRS reports without any hitches; however today I'm having difficulty with a report that I want to run on selected incident records.
For my Dataset properties, I have the following query:
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="incident" enableprefiltering="1" prefilterparametername="CRM_FilteredIncident">
<attribute name="incidentid"/>
<attribute name="customerid"/>
<attribute name="responsiblecontactid"/>
<attribute name="title"/>
<attribute name="createdon"/>
<attribute name="ownerid"/>
<attribute name="ticketnumber"/>
<attribute name="sysit_scheduledfor"/>
<attribute name="sysit_jobtype"/>
<attribute name="description"/>
<attribute name="sysit_engineernotes"/>
<attribute name="prioritycode"/>
<attribute name="caseorigincode"/>
<link-entity name="account" from="accountid" to="customerid" alias="ab">
<attribute name="sysit_contracttype"/>
</link-entity>
</entity>
</fetch>
However, when I open incident records, I'm not being given the option to run the report on the current record. It will only allow me to run the report on all records. Where am I going wrong?
I assume it's related to this specific bit of code in some way:
<entity name="incident" enableprefiltering="1" prefilterparametername="CRM_FilteredIncident">
I have used the following variations, but none of which have worked:
<entity name="incident" enableprefiltering="true" prefilterparametername="CRM_FilteredIncident">
<entity name="incident" enableprefiltering="1">
<entity name="incident" enableprefiltering="true">
Any assistance you can provide would be greatly appreciated.