You need to sign in to do that
Don't have an account?
JoshVH
Parent to Child SOQL Inner Join
Is there any way to make this query only return the custom object records that have attachments? When I run this query it returns all of the custom object instances for the specified account even if they don't have an attachment. Then I have to loop through the list to actually find the attachments.
Select c.name, c.id, c.recordtype.name, (select a.name, a.createddate from attachments a)
from custom_object__c c
where c.accountid = 'xxxxxxxxxxxxxxx'
order by c.createddate desc
Select c.name, c.id, c.recordtype.name, (select a.name, a.createddate from attachments a)
from custom_object__c c
where c.accountid = 'xxxxxxxxxxxxxxx'
order by c.createddate desc
Thanks,
Here is the idea. I think I stated it correctly. Please let me know if you see any inconsistencies.
Vote for the idea
Message Edited by JoshVH on 11-14-2008 08:35 PM