web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Create a collection/ga...
Power Apps
Answered

Create a collection/gallery with pictures from the Media tab in PowerApps

(0) ShareShare
ReportReport
Posted on by 27

Hey guys,

 

i want to create a gallery with images that i have uploaded in my App into "Media". Is there a possibility to achieve this?

I have tried the following:

1) I uploaded 4 pictures into Media (Image1.png, Image2.png, Image3.png, Image4.png)

2) I use the following code to generate a collection:

             Collect(
             MyCollection;
             {Value:"Image1"; Image: 'Image1.png'};
             {Value:"Image2"; Image: 'Image2.png'};
             {Value:"Image3"; Image: 'Image3.png'};
             {Value:"Image4"; Image: 'Image4.png'})

 

It is not working and gives me an error. I would be thankful if anyone got a solution to the problem.

BR,

Phil

Categories:
I have the same question (0)
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Hey! 

    You should have something like:

    Collect(
                 MyCollection;
                 {Value:"Image1"; Image: Image1.png});;

     

    Collect(
                 MyCollection;
                 {Value:"Image2"; Image: Image2.png});;

     

    Collect(
                 MyCollection;
                 {Value:"Image3"; Image: Image3.png})

     

     

    But I dont understand why you want a collection with those.. But ok. Pluse, not sure if it will know what "Image1.png" is...

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

    Check my User Group (pt-PT)!

  • Verified answer
    WarrenBelz Profile Picture
    155,662 Most Valuable Professional on at

    Hi @Phil_Thurner ,

    Try this

    Collect(
     MyCollection;
     {Name:"Image1.png"; contentBytes: Image1};
     {Name:"Image2.png"; contentBytes: Image2};
     {Name:"Image3.png"; contentBytes: Image3};
     {Name:"Image4.png"; contentBytes: Image4}
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 421

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard