Skip to main content

Notifications

Dynamics 365 general forum

Email body attachments generation

Posted on by Microsoft Employee

Hello,

The problem is that ->

For example a customer send to me an email with a picture in description(copy/paste). When i get this email

CRM automatically generates this description image like an attachment.

I want to get all images for the email which are in the body, but i can't , because they are generated as attachments, but attachments does not have a field like "IsBodyGeneratedAttachment" and i dont know if this is a description image. 

Why i have to do that?

Because, when opening an email activity, the images inside the description are something like that: <img src="organization/activity/attachments/CRMToken"/> and they are invisible. 

So my solution was, to call a WEB API and get the base64 string(attachment body) and replace it after "src", like that : <img scr="base64 string">, but if the attachment is not an image it will replace "img" tag with for example Word File base64 string(if email have a Word File attached). 

How i can distinguish the description generated attachments from the normal attachments?

Categories:

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans