Has anybody got experience or ideas how I can resolve the following issue please?
We're trying to query attachments sent via outbound email from the email related list on case, so that we can copy the attachment data and process it.
Attachments added this way don't seem to hit triggers (as per this known issue with no fix: https://trailblazer.salesforce.com/issues_view?id=a1p300000008YTEAA2)
I tried another idea, by putting a trigger on EmailMessage and trying to query attachments where Attachment.ParentId = EmailMessage.Id, however these attachments aren't available while we're in the execution context of the emailmessage trigger... probably a timing issue
We don't want to go down the route of writing more scheduled jobs to check this, but I'm afraid we'll have to. Is this the only way to achieve this?