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

Notifications

Announcements

Community site session details

Community site session details

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

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
    153,040 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard