Skip to main content
Community site session details
Power Apps - Building Power Apps
Answered

HTML Image from Sharepoint

Like (1) ShareShare
ReportReport
Posted on 22 Apr 2021 08:48:34 by 390

Hello everybody,

I would like to display an image URL from my Sharepoint page in an HTML text field, but I have a mistake somewhere or I'm doing something wrong.

How can I display the image?

"<h4><strong><img src='https://coffeeandtea.sharepoint.com/.....' width='40' height='40' alt='' style='margin-left: 420px; margin-right: 420px;' />&nbsp;Bescheinigung </strong></h4>"
  • Suggested answer
    dp30102858 Profile Picture
    4 on 25 Jul 2024 at 05:17:07
    HTML Image from Sharepoint
    Solved: Embed image from Sharepoint or OneDrive in Email using Power Automate
     
    I created a flow as shown below. 
     
    1) First, I'll get File content from OneDrive/SharePoint Image File.
    2) Then convert File content using DataURi function in Compose.
    3) Initialize String Variable & Concat above value with <img src>.
    4) Finaly Send an Email & paste Variable value in Body.
    Final Result:
  • o2o2 Profile Picture
    40 on 18 Apr 2023 at 16:27:29
    Re: HTML Image from Sharepoint

    I've tried ur way but it didn't work... I think it's because my image is not public shared, but I can't change it to public.
    I'll try a work around, but thanks for the suggestion

    Captura de ecrĂŁ 2023-04-18 172531.png

  • Community Power Platform Member Profile Picture
    on 20 Feb 2022 at 23:58:49
    Re: HTML Image from Sharepoint

    I found a way.
    It's to use a part of List URL_Sample:https://********.sharepoint.com/sites/PowerApps/Images/Forms/AllItems.aspx.

    <img src='https://********.sharepoint.com/sites/PowerApps/Images/FileName.png'>

  • Verified answer
    henkenTech Profile Picture
    135 on 22 Apr 2021 at 09:33:34
    Re: HTML Image from Sharepoint

    Unfortunately, there is no way to achieve this. Refer to this article with the same question:

    Solved: show image in HTML text control from media in Pow... - Power Platform Community (microsoft.com)

     

    It's a very long winded way of doing it, but you could build a PA Flow with HTTP inbound as a trigger, that retrieves the image content from SP and returns it via HTTP in the response. But this is quite over the top for just retrieving an image.

    So you maybe have another location you can store the image? Azure? FTP?

     

    Max

  • Robertjde Profile Picture
    390 on 22 Apr 2021 at 09:25:16
    Re: HTML Image from Sharepoint

    @henkenTech 
    and if the image is uploaded directly in the app?
    then how do I write the formula?

  • henkenTech Profile Picture
    135 on 22 Apr 2021 at 09:11:48
    Re: HTML Image from Sharepoint

    My guess is it is the same issue why the PDF viewer cannot show PDFs located on SP. A PowerApp cannot display online content that is not entirely authentication free. The Image has to be located at a completely authentication free storage, such as bit bucket or something.

     

     

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

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete