In my opinion it is not possible via queryexpression , instead use fetch query to do so.
Example:
<fetch mapping="logical" distinct="true" version="1.0">
<entity name="salesorderdetail">
<attribute name="productid" />
<filter>
<condition attribute="salesorderid" operator="eq" value="188e0cc5-bd92-e111-bf0d-000c29b88bc5" />
</filter>
</entity>
</fetch>
Hope this helps. ----------------------------------------------------------------------- Santosh Bhagat If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"