web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

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

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Suggested answer
    meelamri Profile Picture
    13,216 User Group Leader on at

    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

  • meelamri Profile Picture
    13,216 User Group Leader on at

    Hi, Any news ?

  • justjags Profile Picture
    17 on at

    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

  • Suggested answer
    meelamri Profile Picture
    13,216 User Group Leader on at

    Hi,

    You will need to use retrieveMultiple message and ActivityPointer entity.

    pastedimage1631103977596v1.png

    Good Luck !

  • justjags Profile Picture
    17 on at

    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!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 45 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 36

#3
Satyam Prakash Profile Picture

Satyam Prakash 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans