
In my Power App, there is a variety of images and videos that I retrieve from a SharePoint list using a URL. When I open the app on a smartphone, for example, the images/videos are not loading. I suspect that this is because authentication is required to access the SharePoint list. Is there a solution or another way to integrate the media into the app? (Directly uploading the images/videos is not sufficient due to low data volume.)
If the images and videos are not loading in your Power App when accessing them from a SharePoint list, it could be due to authentication issues or the way the URLs are constructed. Here are a few troubleshooting steps and alternative solutions you can try:
Check SharePoint permissions: Ensure that the users accessing the Power App have the necessary permissions to access the SharePoint list and the media files. Verify that the users have read access to the files and that they can view them in SharePoint directly.
Confirm URL format: Make sure that the URLs of the media files in the SharePoint list are correct and accessible. Test the URLs by opening them directly in a web browser to see if the media files load properly. If the URLs are incorrect or require authentication, you may need to modify them.
SharePoint Connector authentication: By default, the SharePoint connector in Power Apps uses the credentials of the user running the app to access SharePoint resources. Ensure that the user running the app has the necessary permissions to access the media files. If the app is being used by multiple users, you may need to consider using a service account or a different authentication mechanism to access the media files.
Alternative media hosting: If authentication issues persist or if you want to avoid relying on SharePoint URLs, you can consider hosting the media files externally. You can use cloud storage services (e.g., Azure Blob Storage, Amazon S3, Google Cloud Storage) or content delivery networks (CDNs) to store and serve the media files. This way, you can generate publicly accessible URLs for the media files that can be used in your Power App without authentication issues.
Store media metadata in SharePoint: Instead of storing the actual media files in SharePoint, you can store their metadata (e.g., file name, file type, description, thumbnail URL) in SharePoint columns. The media files can be hosted externally, as mentioned in the previous step. This approach allows you to manage the media files separately and retrieve their metadata from SharePoint to display in the Power App. When rendering the media, you can construct the URLs based on the metadata retrieved from SharePoint.
Remember to consider security and privacy implications when using external hosting solutions and ensure that the chosen solution aligns with your organization's policies.
By following these troubleshooting steps and exploring alternative solutions, you should be able to resolve the media loading issue in your Power App and integrate images and videos from SharePoint successfully.