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 / Image collection getti...
Power Apps
Answered

Image collection getting overwritten when creating multiple forms

(0) ShareShare
ReportReport
Posted on by 110

Dear all,

I have a small issue regarding my image collection. Each time I am exiting the screens I have, and for a new form, the collection is being overwritten (and not updated).

I have 3 screens where I collect the images:

AOZ_0-1632295895594.png

 

In each screen I am collecting images into the same collection.

 

ClearCollect(

 ColImages,

 {

 DisplayName: Label6.Text & ".jpg",

 Id: Label6.Text,

 Value: Camera1.Photo

 }

 );

   

After that, I exit the screen and come to the home page. The collection displays all images correctly.

If I then create a new form and save other images, when coming back to the home page, the second shots are overwriting the previous images of my collection.

How can I make the collection store multiple images when creating multiple forms?

Categories:
  • Verified answer
    C-Papa Profile Picture
    1,836 on at

    Hi, by definition, ClearCollect is removing everything from the collection before collection the new data. you can change your formula to just collect, this will keep on adding to the collection, as i have done below. at some point you will need to make the collection empty so the user can start from scratch, just use Clear(ColImages) on a button etc to empty the collection

     

    Collect(

    ColImages,

    {

    DisplayName: Label6.Text & ".jpg",

    Id: Label6.Text,

    Value: Camera1.Photo

    }

    );

  • AOZ Profile Picture
    110 on at

    Hi @C-Papa 

    Perfect! Thanks...now working fine!

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard