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 / clearcollect not refre...
Power Apps
Answered

clearcollect not refreshing on button click

(0) ShareShare
ReportReport
Posted on by 95
Hi All,
I have written a clearcollect on Button(inside gallery) click and i used the same collection name for the another gallery items. Here my second gallery is on a popup. My issue is for each and every click on Button my collection data not refreshing with new data.
Can someone help me on this issue.
Categories:
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @BKGOUD ,

     

    Are you using the same name and same expression for the collection?

  • BKGOUD Profile Picture
    95 on at

    Hi @Anonymous ,

     

    Thanks for helping me.

    Below is collection details.

     

    ClearCollect(
    ConflictDateByRoom,
    AddColumns(
    colConflictDateByRoom,
    "ConflictStartDate",
    LookUp(ConflictsRoomsWithStartDate,RowNumber=SerialNumber).Value
    )
    );
    ClearCollect(colBOHConflictDateByRoom,

    Filter(ConflictDateByRoom,emptySuggestionsReason="OrganizerUnavailable").ConflictStartDate)

     

    i'm using the colBOHConflictDateByRoom collection on the Gallery items. But this gallery on popup window.

    Please let me know if you need any more details.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @BKGOUD ,

     

    You need to refresh your data source "colConflictDateByRoom", because your collection "ConflictDateByRoom" is based on it, and then your collection "colBOHConflictDateByRoom" is based on "ConflictDateByRoom", try to add the same clearcollection for "colConflictDateByRoom".

  • BKGOUD Profile Picture
    95 on at

    @Anonymous 

     

    I have used ClearCollect for all the collections  which i have created. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @BKGOUD ,

     

    If your total records are not above the limitation (such as 500), then you can add a button somewhere or the "Onvisible" property of another screen, then add the code for the clearcollection one more time, in another words, you have the same code for the collection in two different place, this is for the system to collect the data again. Then your data will be refreshed.

  • BKGOUD Profile Picture
    95 on at

    @Anonymous Thanks for helping me.

     

    I need to pass the gallery selected item(I have button on gallery with multiple records) as a input parameter for the collection to load.

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard