Get attachments from an object

Returns the compact records for all attachments on the object.