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
Impactful Individual
Impactful Individual
4 REPLIES 4
panand99
Impactful Individual
Impactful Individual

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
Frequent 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
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

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.

Users online (1,942)