Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

HTML Image from Sharepoint

(1) ShareShare
ReportReport
Posted on by 382

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 at
    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 at
    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 at
    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 at
    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
    382 on at
    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 at
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,522 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,890 Most Valuable Professional

Leaderboard