locked
How to access email attachment from plugin RRS feed

  • Question

  • Hi,

    I want to make a plugin that, when an email is tracked from outlook into CRM, or an email is sent from CRM, copies the content from the email entity into a new entity. Some emails will have an attachment, and I would like to know which plugin message I can use to capture the creation of that attachment. A normal "send email" in CRM will trigger the 'send' message of email in the plugin, but the attachment is not a part of the data available from the email.

    any help would be nice!

    -Stian-
    Wednesday, February 11, 2009 10:47 AM

Answers

  • Try ActivityMimeAttachment as the primary entity in the plugin. It supports the following messages:

    Create
    Delete
    RemoveBinaryData
    Retrieve
    RetrieveMultiple
    Update
    UploadFromBase64Data

    Ronald
    • Proposed as answer by Ronald Liu Wednesday, February 11, 2009 3:15 PM
    • Marked as answer by stiankd Thursday, February 12, 2009 10:41 AM
    Wednesday, February 11, 2009 3:15 PM

All replies

  • Try ActivityMimeAttachment as the primary entity in the plugin. It supports the following messages:

    Create
    Delete
    RemoveBinaryData
    Retrieve
    RetrieveMultiple
    Update
    UploadFromBase64Data

    Ronald
    • Proposed as answer by Ronald Liu Wednesday, February 11, 2009 3:15 PM
    • Marked as answer by stiankd Thursday, February 12, 2009 10:41 AM
    Wednesday, February 11, 2009 3:15 PM
  • thanks,

    I kind of figured it out myself as well. 

    You can get every attachment linked to an email by using a RetrieveMultiple on the activitymimeattachment entity.

    -Stian-
    Thursday, February 12, 2009 10:40 AM