function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
LeonardLeonard 

Query Attachments on Custom Objects

I'm having trouble getting running a query for attachments on my custom object.

 

 

SELECT Custom__c.Last_Name__c, (SELECT Attachments.Id, Attachments.Name, Attachments.ParentId, Attachments.ContentType FROM Attachments) FROM Custom__c

 

 

 

werewolfwerewolf
It would help if you mentioned what the error is.