Get attachments content for correct table