Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Suggested answer

Which plugin event is fired when an email is expanded under Activities for a contact?

Posted on by 17

Hi,

We are moving email body content from our Dynamics 365 instance to Azure blob storage.

I wrote a plugin that fires on Retrieve event of email entity, overrides the "description" and "safedescription" attribute. This part works well and I can see my custom content (this will be replaced by Azure blob later) when a user opens an email. Screenshot:

pastedimage1631044764656v1.png 

But the same event does not fire when this email is expanded from Activities section and actual email body shows up:

pastedimage1631044905683v2.png

I am unable to figure out the step to attach my plugin in this case. Any guidance?

Thanks,

Jags

  • justjags Profile Picture
    justjags 17 on at
    RE: Which plugin event is fired when an email is expanded under Activities for a contact?

    This didin't work. No debug profile got created :(

    I looked into AttachmentExtractor by mscrmaddons (they have a video in youtube) and they seems to upload email content to Azure blob and then strip html tags.  They show this simple email text preview in Activities.

    So I am guessing even they were unable retrieve the original email content in this case.

    The approach we are going to take now is the same as ms-crm-addon. We will upload the email content to blob, strip html tags and save this stripped content in CRM. When user will open an email, our plugin will fetch original email content (with html tags etc.) from blob and pass it along via plugin to CRM.

    Thanks for your reply Mehdi!

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,198 User Group Leader on at
    RE: Which plugin event is fired when an email is expanded under Activities for a contact?

    Hi,

    You will need to use retrieveMultiple message and ActivityPointer entity.

    pastedimage1631103977596v1.png

    Good Luck !

  • justjags Profile Picture
    justjags 17 on at
    RE: Which plugin event is fired when an email is expanded under Activities for a contact?

    Hi Mehdi,

    There are 3 entities that start with activity: activitypointer, activityparty and activitymonitor.

    I tried all 3 but it didn't work.

    Then I used retrievemultiple with email and this step created a debug log profile. But there are only 3 attributes being returned for an email entity in this step and none of them is description.

    I will create step RetrieveMultiple for all entities and will see what comes up.

    Thanks

  • meelamri Profile Picture
    meelamri 13,198 User Group Leader on at
    RE: Which plugin event is fired when an email is expanded under Activities for a contact?

    Hi, Any news ?

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,198 User Group Leader on at
    RE: Which plugin event is fired when an email is expanded under Activities for a contact?

    Hi, 

    I believe you need a plugin that will run on the retrieveMultiple message of the activity entity. The approach to implement will be different from the one you have already implemented

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans