Showing results for 
Search instead for 
Did you mean: 
Helper II
Helper II

Image in an email written to Dataverse rich text field is lost

I have a Power Automate flow that takes emails from a shared mailbox and writes them to a custom Dataverse table.


This table has a multiline Text field, which is displayed on the form in the model driven app with the rich text editor control enabled.


The flow writes the body of the email to this field.


Which works fine. But if the email body has an inline image then a file path is inserted. Example of what's written to the field:



<img width="1281" height="648" id="Picture_x0020_1" src="cid:image003.jpg@01D6EB62.E776C010" style="width:13.3402in; height:6.75in">



In the rich text field this displays as the image not found icon.

If I paste an email into the rich text field in the app, it is all fine. It creates the images in the Rich Text Attachment entity and they display fine.
To make this work from a flow, do I need to do complicated stuff like get the image contentbytes from the email body and create a Rich Text Attachment record so I can link that back from the email body?
Is there a better way of handling this scenario of seeing inline images in a model driven app? 

Hello @mjburley ,


Thank you for your post on the forum.


In terms of root cause, the image available in the flow or wherever you have it hosted might not be available in Dataverse.


Because the two of them do not share the same database, you can face this issue if your image has not been hosted somewhere accessible for both of them.


If you want to try to confirm this search on the internet for an image, as the flow does not specify the image website or Azure blob associated with it, you need to find one online and replace it in your flow update, once that had been completed run your flow in order to confirm if the image is available, if that's the case you need to take into consideration the fact that you need to provide image source as an URL or something similar which should be accessible for both.


Same thing happens while trying to add an image from local drive as the organization is unable to retrieve the image from the local drive.


I hope this helps.


Thank you,

Madalina Toma

Microsoft Support

Helper II
Helper II

Thanks @mtoma.


After some reading around, I found inline images are actually attachments, but I need to check on the Attachments isInline flag available from the email trigger.

This allowed me to simply add the inline image as an attachment to the record (in Notes).

I now need to find the best way of taking this attachment (which I can get as contentbytes) and inserting into the rich text field in the entity in the appropriate place. I can store it as a variable and then insert it within the img src tags in theory,

Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!


Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (38,982)