Is it possible to filter a SQL query to the results of a MS Dynamics CRM Fetch query in the same report. I need fetch to pass back the user id which i can't do in SQL. Is there a better way to complete this process?
SQL:
SELECT title, systemuserid, fullname FROM FilteredSystemUser WHERE (systemuserid = the system user id returned in the fetch ;)
Fetch:
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="systemuser">
<attribute name="fullname" />
<attribute name="systemuserid" />
<order attribute="fullname" descending="false" />
<filter type="and">
<condition attribute="systemuserid" operator="eq-userid" />
</filter>
</entity>
</fetch>