I'm doing sync with Salesforce. In my case I should sync both Case and CaseFeed items. When my CaseFeed items changed I get the notification from Salesforce and create/update the CaseFeed item in external system(if exist). I also want to link the attachments of that CaseFeed item. So I need to get the related attachments of updated item using REST API for example.
I know that attachments will be linked to Case even if added in Case Feed item directly. And all attachments saved in Attachments table. So to get the related Attachments of the Case Feed I just need to know the Attachments ids, right? But I have no idea how to get it from Case Feed item. I am investigating the CaseFeed and FeedAttachments objects but no luck.
Can somebody help me with it?
Also is it possible to get a external links to attachments? Is it supported in Salesforce? For example can I get the links to the attachments in my CaseFeed/Case to use it in external system for download?
UPD Here is the Connect API endpoint that allows me to get the whole Case Feed Item. And looks like the file Ids there is what I'm looking for. But the response object is quite big. What if I need only the Attachments ids? Can I get it somehow using Rest API?
Also looks like the links to the attachments in response can be used for uploading.