Aug 17 2018 11:16 AM
Aug 17 2018 11:16 AM
I've been dealing with this issue for about a couple weeks now and am going crazy trying to find a solution...
I'm creating a company directory. I have all the information for each user listed along with a picture of the individual. All the text-based information is being pulled from a SharePoint data source connection. The pictures of the users are being hosted on our company's SharePoint group in an image library. All the pictures are viewable externally. The PowerApp works fine when viewed in a web browser outside of teams however once you attempt to view it in teams (either using a PowerApps tab or a web browser*(works partially see below) tab) the pictures don't show up at all. The pictures work in the power app studio, a standalone web browser, and in the power app itself.
[In a web browser]
[in a Teams PowerApps Tab]
If I open teams in a web browser and then goto the power apps tab it will work partially. It will only load the first 17 user's images then stop. I've tried using the HTML text area in PowerApps and that doesn't work either.
The reason I'm trying to make it work from a directory rather than embedding the images is that I want our HR dept. to be able to easily edit this without me having to upload and publish a version of the app everytime we add a new employee...
Please, any help would be amazing, I'm going crazy over this thing...
Jun 19 2020 08:36 AM
@Dane Andreasen Sorry for reviving this old thread but did you ever find a solution for this? I am running into a similar problem.
Jul 06 2020 06:47 AM
I also encounter this problem now. In the browser it works fine. In teams no user pictures.
Hope someone can help us...
Jul 16 2020 01:18 PM
@Dane AndreasenLooking to "bump" this post! I'm having the same issue
Jul 16 2020 01:43 PM
@JDiedrich25 My guess is that your browser will have logged into SharePoint and have a valid authentication cookie, Teams isn't your browser so wont have this cookie.
As these are staff images can you not just pull them from the directory and avoid SharePoint as a source, a little like described here https://powerusers.microsoft.com/t5/Building-Power-Apps/Adding-users-Office365-profile-picture-to-Po...
Jul 16 2020 01:56 PM
@Steven CollierI'll take a look at that article. All of my data sources come from a SharePoint List. They are just staff pictures which show up in Teams so it's weird to me that they wouldn't show up in an app within Teams.
Thanks for the article! I plan to look into it!
Jul 16 2020 02:07 PM
@JDiedrich25 PowerApps will access the list using it's connector, but you are then retrieving a URL to the image that you feed into an image control. The bytes of the image aren't coming from the authenticated connector, it ends up being just like embedding that url. There is no authentication to that provided by PowerApps.
Jul 16 2020 02:08 PM
@JDiedrich25 One trick would be to put the powerapp in a SharePoint page, then use the SharePoint tab to display the page.