I have a Salesforce instance using the old CaseComments instead of a Chatter feed. How do I get attachments and inline attachments to a CaseComment via Rest API?
I can get the CaseComments to a Case from
/services/data/v57.0/sobjects/Case/<case ID>/CaseComments. But the
CaseComment type doesn't have fields or relationships for attachments and inline attachments. Also, the
CommentBody field is just plain text and therefore does not contain the inline attachments.
I managed to get all non-inline attachments for a Case via
SELECT Id, (SELECT Id, Title, FileExtension from CombinedAttachments) FROM Case WHERE Id = <case ID>
But that doesn't give me a relationship to the comments, so I can't tell to which comment this attachment belongs (I can only guess from the timestamp). I also still have no idea where I can find the inline attachments.