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

Powerapps download image from gallery

Hi team,

I have image in sharepoint, how can I call in powerapps gallery with attachment icon and click on it download image.
1 ACCEPTED SOLUTION

Accepted Solutions
panand99
Solution Supplier
Solution Supplier
4 REPLIES 4
panand99
Solution Supplier
Solution Supplier
v-yutliu-msft
Community Support
Community Support

Hi @RockyRocks ,

Do you want to download attached images in gallery?

Try this formula: (set the gallery's image's OnSelect)

Download(First(ThisItem.Attachments).AbsoluteUri)

Then, it will loads attached image when you click on the image in the gallery.

 

 

Best regards,

Community Support Team _ Phoebe Liu

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks a lot @

 

The inner gallery is not fetching data above 1000th rown from sharepoint am getting blank displayed, But the Upper gallery its fetching correctly, what can be done?

mariu6
Regular Visitor

My solution includes an Image media and Timer input. SPDocuments is the folder in SharePoint, colAll is the output collection. It can include more columns, depending on the needs.

App:
OnStart = Clear(colDocumentsNumbered);
ForAll (SPDocuments,
Collect(colDocumentsNumbered,
Last(FirstN(AddColumns(Documents, "RowNumber", CountRows(colDocumentsNumbered)+1),
CountRows(colDocumentsNumbered)+1)))); 
Clear(colAll);
Set(currentImg,1);

 

Image: 
Image = LookUp(colDocumentsNumbered,Value(RowNumber)=currentImg).Thumbnail.Large

 

Timer: 
OnTimerEnd = Set(currentImg, currentImg+1);
OnTimerStart = Collect(colAll, {Image:Image1.Image, Name: LookUp(colDocumentsNumbered,Value(RowNumber)=currentImg).Name,  Link: LookUp(colDocumentsNumbered,Value(RowNumber)=currentImg).'Link to item'}); // more properties can be included

 

OnSelect = Set(currentImg,1);  // To restart the download

Duration = 1    // In ms, the lowest possible time for fast loading 

Repeat = true

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,458)