web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Header Logo not Working
Power Apps
Answered

Header Logo not Working

(4) ShareShare
ReportReport
Posted on by 50
Hey,

I can't get the Logo for a header. It sounds dumb but yeah. I have uploaded the image to the documents of a sharepoint site.

I tried getting it with 
LookUp(Documents, "[File Name]" in Name) or LookUp(Documents, "[File Name]" in Name).Thumbnail
 
I have done this since it wants a record. But it simply does not work. To see if it even gets the right thing I added a text label with
 
LookUp(Documents, "[File Name]" in Name).Name
 
And It shows the file name. In theory this should be simply but I just can not get it to work.
 
Thanks in advance 
Categories:
I have the same question (0)
  • Suggested answer
    Kalathiya Profile Picture
    2,456 Super User 2026 Season 1 on at
     
    You need to pick a size from the thumbnail, like this:
     
    Please try this.
    LookUp(Documents, Name = "YourFileName.png").Thumbnail.Large
    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
    ---------------------------------------------------------------------------------

    📩 Need more help? Just mention @Kalathiya and I’ll be happy to assist.

    ✔️ If this answer helped you, please tick “Does this answer your question?” so it can be marked as the Verified Answer.

    💛 A Like always motivates me to keep contributing!

    ​​​​​​​
  • DK-03030714-0 Profile Picture
    50 on at
    Hi @Kalathiya

    that does not work. According to Power Apps this is a text (Even if I don't know why)

  • Kalathiya Profile Picture
    2,456 Super User 2026 Season 1 on at
     
    Could you please confirm that where you are trying this formula?
     
     
    Code: 
    With(
        {file: Documents},
        LookUp(file,Name="Sample Person").Thumbnail.Large
    )
    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
     
     
  • WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    A small input that may assist here - you may have to do this
    With(
       {file: Documents},
       LookUp(
          file,
          Name = "Sample Person"
       ).'{Thumbnail}'.Large
    )
    Also if your Documents Library has less than 500 files or the required file is in the first 500,  @Kalathiya's post should work for you with the small adjustment above.
     
    However, if that is not the case,  Name is not Delegable and you need to get the ID of the target image and do this
    LookUp(
       Documents,
       ID = YourRequiredID
    ).'{Thumbnail}'.Large
     
  • DK-03030714-0 Profile Picture
    50 on at
    Hey @Kalathiya @WarrenBelz

    I have tried the solutions you recommended but Power Apps still says it as a text.



    When I add that formula to a text label I get a really long link that gives the image I want:

    https://germanywestcentral1-mediap.svc.ms/transform/thumbnail?provider=spo&farmid=[Number]&inputFormat=png&cs=[Some String]&docid=[Some Sharepoint link]&access_token=[Insanely long string]&width=800&height=800&farmid=[Number]

    I have found another way to make it work, I simply uploaded the picture to the media tab.


     
  • WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    Firstly- good you got is working and yes - Media is probably a better option.
     
    However there is something else wrong here - I have been using that structure extensively in a lot of prod aps for many years to display images from SharePoint Libraries - test example below
    Is this definitely a Sharepoint Dosument Library and is the target file an image ?
  • DK-03030714-0 Profile Picture
    50 on at
    @WarrenBelz

    Yes it's the standard Documents Library of the sharepoint site.


    It's a communication site, even though I don't think that should make a difference,

  • Kalathiya Profile Picture
    2,456 Super User 2026 Season 1 on at
     
    Not sure, why it's working for you. 
    Image control try to pass the URL instead of the Thumbnail. 
     
    Alternative Approach: 
    Could you please try this:
    "https://abc.sharepoint.com/sites/SiteName/" & LookUp(Documents, ID = 3).'Full Path'
    Note: https://abc.sharepoint.com/sites/SiteName/ - Replace with your SharePoint site url
     
     If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
  • DK-03030714-0 Profile Picture
    50 on at
    Hi @Kalathiya

    This also does not work:

    "Expected Record Value.

    The Property on this control expects Record values. The rule produces Text values which are incompatible."


    It's no longer a problem since I uploaded it as media but weird nonetheless. Maybe something worth involving a MS dev for
  • Kalathiya Profile Picture
    2,456 Super User 2026 Season 1 on at
     
    It’s a bit weird that it’s not working for you might be some setup issue, not sure.
     
    Try below approach:
    - Add HTML Text control instead of image control and put below code:
    In HTMLText property past below code. 
    With({ 
            _file:LookUp(Documents,ID=3).'Link to item'
            },
            "<img src='" & _file & "' width='100' />"
        )
    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard