Dear community,
I am building an app that should display media resources (images and videos) from a SharePoint Library. There is only one picture / video shown at a time and should dynamically change based on user input.
with the proposal of @v-xida-msft in this topic:
https://powerusers.microsoft.com/t5/Building-Power-Apps/Picture-from-SharePoint-List-NOT-showing-in-PowerApps/td-p/564713
I could implement the function for images sucessfully:
Image property of Image control:
LookUp(SPLibrary,'File name with extension'=LookUp(SPList,ItemNumber=CurrentItem,FileName)).'{Thumbnail}'.Large
with:
- SPLibrary being the SharePoint library containing the image files (e.g. picture1.jpg)
- SPList being the SharePoint list with a column of type Single line of text called "FileName". The entries in this column match the file names in the library (e.g. picture1.jpg)
- CurrentItem being a global variable that is indicating the currently active column (=image) of the SharePoint list. This variable is changed on user input.
As this solution works fine with images, I could not get it working with video files.
Can you give me some advice how to archive this?

Report
All responses (
Answers (