Trigger on Service: New message on request and messge.getAttachments() is empty

lock
push_pin
done
Beantwortet
0

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

10 h, 47 m vor | 02:18 PM

Alle Antworten (0)

Antwort hinzufügen