Files attached to Messages in Salesforce Messaging
Files are stored in ContentDocument entity. Use this soql to find the ContentDocumentId. SELECT ContentDocumentId FROM ContentDocumentLink WHERE LinkedEntityId = '<MessagingSessionId>' Example: 1. Run the below SOQL.SELECT ContentDocumentId FROM ContentDocumentLink WHERE LinkedEntityId ....