We have images stored in Share Point documents folders.
Up till just yesterday, they would show in the Power App when link in the image box.
I have tried new image boxes, but they also are showing no image at all, just blank.
Tried in both Edge and Chrome.
I can take URL and paste into browser and it works fine.
Did something change? Any other suggestions?
Great Idea!
Well we found a solution.
Right now we store the image as a link ( /shared documents/folder/img.jpg for example ). Of course this is how all the videos show to do it that I saw.
When we create the image with a flow from the PowerApp, we just would store that, but found if store the ID for it, like the ID of list, we can then use this to do a simple lookup that has no security issues within the app. So we did have to go in and download the documents folder like a list in excel, to get the ID's and then updated our list with these ID's. Now the flow auto adds them when the image is created/saved for all new ones.
so before the image link in PowerApps would be:
https//url/shared documents/folder/img.jpg
now:
lookup(documents,ID=myImageID).Thumbnail.Large
Before it never really worked in the app, like on a phone or anything, due to security and needing a browser to gain the login to see the images. But this new way works well with all ways we would access the app. And this has been tested and working with well two different workspaces, with 20,000 images and 40,000 images in the other.
Hope this can help some others with ideas of different ways to do this.
A few ideas you could use:
- Copy your images to a repository that doesn't require authentication, like an Azure Blob storage. This will also improve the performance of the app.
- Move the relevant images (the ones used by your app) to a different SharePoint Library, so the number is lower than 5K.
- Provide another filter criteria to the Lookup function. Maybe you can filter using another column in the library.
More info:
https://www.matthewdevaney.com/sharepoint-delegation-cheat-sheet-for-power-apps/
I hope it helps!
This issue has reappeared again.
I did try the lookup option, but problem is there is way more images than I can lookup that way. ( delegation issues )
I believe there is around 8,000 images in those folders total. So the lookup just does not work in this case either.
anyone else have any other ideas to help with this?
about 2 hours ago, it started working for everyone again. So something change and then changed back, I guess.
but thanks for the idea there, that could be a good workaround.
@TMT001 can you explain how you are retrieving the images from SharePoint and linking them to the image box?
Are you using a gallery connected to a SharePoint library?
If yes, you probably you already know that the column containing the image will have three sizes of images that you can link to.
Something like this:
If what you are trying to do is to use the link to a SharePoint image as the source of the image in the ImageBox, I'm afraid that won't work unless you use a publicly accessible link. The SharePoint security won't let you access the image from the Canvas App.
If you want to retrieve the image for any given SharePoint URL use the SharePoint connector to handle the security for you. Use the Lookup function, then provide the image path as a filter. Something like this:
LookUp(Documents,'Full Path'="Shared Documents/Marketing/Branding/BlueFire.png").Thumbnail.Small
I hope it helps!!
WarrenBelz
146,776
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,093
Most Valuable Professional