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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Get Image From SP Library
Power Apps
Unanswered

Get Image From SP Library

(0) ShareShare
ReportReport
Posted on by 372

Hi,

 

I want to show image from my sharepoint library, so I used this in my image formula:

"https://xxxxx.sharepoint.com/:f:/r/sites/xxx/xxxx/production_engineering/Welding%20Map%20Files/Others/Drawing%20Welding%20Map/"&Substitute(TextInput1.Text,"
","")&".jpg?csf=1&web=1&e=XGAeRV"

 

It works when I used Laptop to open my apps, but when I use smartphone, the image doesn't appear. Does anyone know why this happen? And how to fix it? Thank you!

Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,484 on at
  • firda59 Profile Picture
    372 on at

    @Sundeep_Malik 

     

    thankyou! does it mean I cannot show my image in mobile apps nah?

  • Sundeep_Malik Profile Picture
    6,484 on at

    @firda59 

     

    Yup as far as I read the above posts, I think its not possible. 

    Sundeep_Malik_0-1698998255025.png

     

    But you can try the following that @WarrenBelz suggested:

     

    Sundeep_Malik_1-1698998368813.png

     

    Its in the 2nd post: 

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Share-point-pictures-can-not-be-seen-on-IOS-Devices/m-p/138416/highlight/false

     

     

    Tagging @WarrenBelz If he can assist here. 

    I havent tried it myself so I am not exactly sure, so tagged him.

  • BusyIntelligence Profile Picture
    321 on at

    Hi @firda59 , yes you can. You have to add the SP library as datasource in your app. E.g. it is called "Documents".
    To show the image you can create an image with source something like below: 

     

     

    First(Filter(Documents; Filenameextension="thisismyimage.jpg")).Thumbnail.Large

     

     


    When using a gallery, the datasource Documents can be used to list the images as previews in your app.
    This works both when you run the app in a browser and on a (Android and iOS) mobile device.

     

    Btw: you can/should improve above example by filtering on an indexed column because of delegation issues when your library contains lots of files

  • Verified answer
    WarrenBelz Profile Picture
    152,872 Most Valuable Professional on at

    @Maurits ,

    The only issue there is that queries on the File Name are not Delegable. You need to actually link the SharePoint Library and include a Delegable "link" to the "Parent". I use a numeric field containing the ID of the Parent. The issue is that on Mobile devices, Power Apps needs to resolve and URL-based Images anonymously (not requiring any login), so anything "pointing" at a SharePoint URL will not work. I have a blog on this subject that may be useful.

  • firda59 Profile Picture
    372 on at

    @WarrenBelz 

     

    Thankyou! I using formula: ThisItem.'{Thumbnail}'.Large and it can work perfectly in Laptop or SmartPhone. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard