0

I need to get attachments when trigger on EmailMessage executes.

How do I find them?

Edit: The EmailMessage is created via Lightning for Outlook plugin.

2
  • emailmessage related to what? Cases? your question is not very clear, additionally what have you tried and/or researched? please update your post accordingly, thanks
    – glls
    Oct 12 '17 at 0:11
  • @glls EmailMessage is created via Lightning for Outlook. A task is usually created, tho I do not find it super relevant.
    – dzh
    Oct 12 '17 at 0:20
0

Found it. It's ContentDocumentLink.ContentDocumentId.

e.g.

SELECT Id, LinkedEntityId, ContentDocumentId, IsDeleted, SystemModstamp, ShareType, Visibility FROM ContentDocumentLink where LinkedEntityId = '02s550000012345678'

02s550000012345678 is EmailMessage id.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.