cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
OliverV
Helper I
Helper I

Get image from Sharepoint list or library, and show the picture base on a dropdown selection

Hi All,

 

My application is an asset usage application. I have created a sharepoint list containing the assets, and in the power app a dropdown having the "Items"= Itemlist.Title. (dropdown in the image)

 

What i would like to achieve is to have above the dropdown 1 picture element, which based on what i select in the dropdown, shows that item image. (golden square in the image)

I don't know which is the good approach for this:

 

1) store the images as attachment in the "itemslist"

2) store the images in a sharepoint Library, naming each picture as the Items in the Itemlist.

 

Can i achieve this with simply powerapp or should i use also Power automate?

 

Thank you in advance for the help!!!!

 

@WarrenBelz?? 🙂

24 REPLIES 24

@Anonymous ,

This is an old closed post, but to answer your question, Name is the name of the file you put in the Library. The reference you need is probably

LookUp(
   Documents,
   Part = DataCardValue27.Selected.Value
).'{Thumbnail}'.Large

This is all in the blog I referenced.

Anonymous
Not applicable

It worked when I changed .Value to .Result.

You're the PowerApps hero Warren! Many thanks.

@Anonymous ,

I took the .Value off your post - you obviously have a Distinct filter on the drop-down.

Anonymous
Not applicable

Yes I do

Anonymous
Not applicable

I have the same issue with an audio recordings library. Should I replace Thumbnails into an audio recording reference? if yes, what is it?

@Anonymous ,

Sorry, I have never used audio files with Power Apps, although I suspect you cannot resolve an image of them (not all file types will do this.

Anonymous
Not applicable

Can we deal with the audio as they're items in a library. I believe you understand powerapps logic more than I do, the following screenshots may help, I used power automate to save the audios in sharepoint.

@Anonymous ,

I have nothing to test this with (and I have never used Audio files), but if you put the audio file in the gallery and pointed the Media property at the item in the gallery, it should work.

I have read several posts of yours and this last issue took me a while to get it resolved. Thank you so much for your support, after you travel to Budapest you can also travel to Guadalajara, Mexico and I'll invite you to get a tequila shot. 🙂

Thanks @huitradoemm ,

Always a pleasure knowing I am helping.

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,950)