Hey,
We're trying to get the attachements for a message on this trigger, but Message.getAttachments() is empty when called.
If we manually set an old messageId, we do get the attachements. It's almost like the trigger fires before the attachments are stored.
Any clever work arounds here? I tried to get the trigger script to sleep. Or do a while loop and wait until the Integer array is filled with something. But seems like it never does.
I hit execution timeout before the array has any entries. So maybe this is some job that is done after the trigger i run?
Best Regards
Bjørn