Hi,
I have been attempting import a custom SSRS Quote report and I cannot get it to run on the current quote selected.
The initial FetchXML was generated from a view and I added an extra entity.
I have tried:
- adding enableprefiltering="1"
- moving the filter within different different entities with in the fetch query
- select to Display in - Forms for related record types; Reports area (note: every time I add the report it never appears under "Run on Current Record" it only appears under "Run on All Records"
- plus 107 different suggestions to no avail
Here is the FetchXML query I have:
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="quotedetail">
<attribute name="productid" />
<attribute name="priceperunit" />
<attribute name="quantity" />
<attribute name="extendedamount" />
<attribute name="uomid" />
<attribute name="tax" />
<attribute name="quoteid" />
<attribute name="modifiedon" />
<attribute name="lineitemnumber" />
<attribute name="shipto_freighttermscode" />
<attribute name="description" />
<attribute name="createdon" />
<attribute name="baseamount" />
<order attribute="productid" descending="false" />
<link-entity name="quote" from="quoteid" to="quoteid" alias="ac">
<attribute name="totaltax_base" />
<attribute name="totaltax" />
<attribute name="totallineitemamount_base" />
<attribute name="totallineitemamount" />
<attribute name="totalamount_base" />
<attribute name="totalamount" />
<attribute name="freighttermscode" />
<attribute name="quotenumber" />
<attribute name="customerid" />
<attribute name="onholdtime" />
<attribute name="name" />
<attribute name="bde_jobnumber" />
<attribute name="effectiveto" />
<attribute name="effectivefrom" />
<attribute name="description" />
<attribute name="createdon" />
<attribute name="closedon" />>
<attribute name="billto_composite" />
<filter type="and">
<condition attribute="quoteid" operator="eq" uiname="8 drums of Hydrochloric acid" uitype="quote" value="{5DDD87B1-AF64-E711-8115-C4346BAD3418}" />
</filter>
<link-entity name="account" from="accountid" to="customerid" alias="acc" link-type="outer">
<attribute name="emailaddress1" />
<attribute name="telephone1" />
<attribute name="primarycontactid" />
</link-entity>
</link-entity>
</entity>
</fetch>
The above generates the report for the filtered quoteid. If I move the filter to under the last link entity, it generates every quote line.
Thanks for looking and great if you can help.
Regards, Steve