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

Fetch XML Business Logic

$
0
0

With several limitations in FetchXML, such as the in-ability to use subqueries, how can I apply business logic to a CRM Online report?

Currently, we use CRM On Premise and have many custom reports, with the majority having some sort of business logic defined within the SQL. 

One example of this is when we look at the time taken to resolve a particular case (IncidentResolution Table). The owner of a case may re-open it and resolve it again, after modifying it or logging more time against it, which results in multiple records within the IncidentResolution table for that case. In SQL we can identify the latest resolution record for each case using ROW_NUMBER(), and then take the total time logged against the case from that. However within FetchXML, I don't have the ability to use ROW_NUMBER() or a subquery for that matter.

Is there a work around for subqueries in FetchXML, or am I correct in thinking that business logic such as this, cannot be applied to reports unless we use custom reporting methods? (I.E Pull the online data to a Local DB, or use the CRM SDK?)

Thank You


Viewing all articles
Browse latest Browse all 55831

Trending Articles



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