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

Fetch VS SQL

$
0
0

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>




Viewing all articles
Browse latest Browse all 55831

Trending Articles



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