cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Display image from Sharepoint Library. Authentication Problem?

Hello,

 I Have an app that loads Images from Sharepoint Library. Images are in a gallery and It works fine when developping the app.

 

However, when its deployed to new devices, the images doesn't show. The only way to make them show is by opening a new tab and opening the sharepoint site which the document library resides in.  (And this is not a one time process. You have to keep doing it from time to time)

 

This is not practical when deplying the app to a large number of devices. 
 What is causing this issue and how can i Fix it?

 

thanks

28 REPLIES 28

I'm still stuck on this too

Is the app you're developing a mobile app or a desktop application? The referenced article won't work for mobile applications. I spent hours trying things online, including that article, to literally no avail. The only way that I know is to use the thumbnail property of the image when the image is stored in a document library. 

This is for a mobile app.

My app is both desktop and mobile (80% mobile usage)

 

Do you have an example of how to get the thumbnail?

Connect to the document library using a gallery, insert an image control, in the image property of the control type ThisItem.Thumbnail.Medium 

 

I ended up making a desktop version that utilized the normal way and then a mobile version with the thumbnail method. 

 

Here's a link that covers it

notj
Post Prodigy
Post Prodigy

@JMAFO You have two separate apps, or you have two separate images in your gallery? If in the gallery, how are you determining if the user is on mobile/desktop?

@notj two separate apps. For reference, I did this for an employee directory. The desktop version I've embeded into a SharePoint page, named "Employee Directory - Desktop Version" and the mobile version is only accessible via the PowerApps app, named "Employee Directory - Mobile Version". Unfortunately, you can't hide created apps from the PowerApps app, so you have to label the apps by device version accordingly... 

notj
Post Prodigy
Post Prodigy

@JMAFO  thanks for the quick reply! That's not too terrible of a downside. I think we've all had much worse downsides in PowerApps before haha.

@notj this is small peanuts compared to the real problems! Administrative control of the PowerApps mobile app portal, universal device support, and conditional device recognition are very much needed for this to be a more complete product. 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,922)