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 / Collection Items gener...
Power Apps
Answered

Collection Items generating automatically when navigating on screens

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, 

 

I have a collection which is working as a sort of shopping cart. I´m currently displaying the collection in galleries. 

 

Thing is, when navigating from one screen to another, collection items are generating automatically. But like, non sense items with missing data. I want to stop this. I just want for items to be created wwhen I press an add to cart button found in another gallery. 

 

For example: 

 

As you may see, I'm here in a page where I can preview the items I have in my cart. By now, I have none. If I press the < arrow button, for going back. With the function: 'Back()' it generates a new item in the collection, which I don't want to. 

 

image.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

image.png

As you may see, a new item was generated in the collection. If I review the collection it is there and the only value it has is the course ID: 

LuisGuzman98_2-1615304237626.png

Why is this happening? I just want for the Items I select to be added to the cart, not any time I change pages. 

 

Please help!

 

 

 

 

 

 

Categories:
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi!

     

    I believe to have solve it myself. 

     

    In the collections section of studio there's a functionality for collections on 'On Visible': 

     

    image.png

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    I just deleted that and trusted God... And it worked. Now every time I switch screens, there are no more collection items generating.

     image.png

     

     

    Hope this helps someone. 

     

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 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard