cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dudu24100
Frequent Visitor

Rich text editor cannot display IMG

Hi all,

Thank you in advance for your time.

In a gallery, I have the list of Email (Outlook), once I select it the body (in Rich text editor) show, but if the Email contains an image PowerApps does not read it.

Dudu24100_0-1664880697281.png

I am looking for an answer on this matter for a few days, so if someone can help me, I will be grateful.

1 REPLY 1
v-chengfen-msft
Microsoft
Microsoft

Hi @Dudu24100 , 

Do you mean that display the body of the email in the Rich text editor and display the image in the body of the email?

If so, I am afraid that using 'Office365Outlook.GetEmail()' in Power App to display pictures in the body of the email is impossible,There are several reasons:

  1. Office365Outlook.GetEmail(Gallery1.Selected.Id).body does not actually contain the content of the image (although it contains <img>tag, in fact the src parameter of <img>tag is filled by the ID of the image).

vchengfenmsft_0-1665038284225.png

 

  1. the pictures in the body are considered as attachments to the email and can be obtained through Office365Outlook.GetEmail().attachments.But this formula cannot get neither the URL of the picture nor the content of the picture (the value of the content attribute is empty). If you want to get the content of a picture in base64 format, I'm afraid you can only get it through flow.

 

 

vchengfenmsft_1-1665038284230.png

 

Based on the above two points, I think the function you need cannot be achieved or is extremely difficult to achieve.

 

Here is a link for your reference:

Solved: Re: Office365Outlook.GetEmailV2() images blank - Power Platform Community (microsoft.com)

Best Regards

Cheng Feng

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,516)