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 / Getting specific image...
Power Apps
Unanswered

Getting specific image from Sharepoint

(0) ShareShare
ReportReport
Posted on by 24

Hello Everyone!

 

I am trying load an specific image from sharepoint. 

 

It's structure is like this:

 

IceBerg_0-1647100526451.png

 

The name of the file is the same info I get on :

 

First(EmployeeProfile).MailNickname + ".png".

 

But I don't know exactly how to load the image on Powerapps. 

 

Could anyone please help me?

Categories:
I have the same question (0)
  • rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @IceBerg 

     

    You can do the following, i assume you only have 1 attachment as the file in that list.

     

    add an image control and set Image = First(LookUp(EmployeeProfile,Name = "imagename.png").Attachments).Value

     

    If you are doing it dynamically remember its yourVariable & ".png"  (yourVariable.png) not +

     

    Hope this helps

  • IceBerg Profile Picture
    24 on at

    Thank you for your answer but it did not work. 

     

    The thing is, each image's name  = First(EmployeeProfile).MailNickname & ".png"

     

    On this print screen, I guess it gets clearer :

     

    IceBerg_0-1647180480876.png

     

    Each file represents one user and I want to get the current user's image.

     

    Btw, to avoid any misunderstanding (I'm not looking for the current users profile picture nor anything like that, i just need to get the image from this sharepoint or have an Idea of how to get specific image for each users from sharepoint)

     

    I was wondering how to get it from the sharepoint

  • rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @IceBerg 

     

    Consider the following:

    • A SharePoint List called 'Some Request Form' with columns Title, Motivation, ... 
    • You have two rows in this list, request 1 and request 2 and an image attached to both of them
    • The Power App is connected to this list
    • There is a gallery galRequests with its Items = 'Some Request Form'
    • There is an image control on the form and its Image = First(galRequests.Selected.Attachments).Value
    • Another image control and set its Image = First(LookUp('Some Request Form',Title = "request 1").Attachments).Value

     

    Result

    rubin_boer_0-1647185077337.png

     

    in the first image you retrieve the first image in the attachments table for that row

    in the second image you specify the Title (usually you will go for the ID of the row to ensure its unique) of the row which image you wish to see.

     

     

    I trust this is more clearer?

    R

  • IceBerg Profile Picture
    24 on at

    I guess I understood what you said, but in your example, you have an additional column named "title", I don't have it, I only have the file name. I guess I will have to figure out how to add a column, copy the file's name in to it and them use the formula. (I have more than 6k images in this folder, one for each user)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard