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 / Clear collect in the A...
Power Apps
Unanswered

Clear collect in the App object

(0) ShareShare
ReportReport
Posted on by

Hey,

In the App object in the OnStart function, there is a clear collect.

For some reason, the first and the last key: value pair of the list are changing by themselves.

That's how it should be:

Racheli_1-1624869899433.png

Each time we open the app it is changing into:

Racheli_2-1624870050855.png

It has started to change around a month or two ago and we don't know why.

Any help will be appreciated!!!

Thanks

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @Anonymous ,

     

    Please try another way of collectting the collection:

    Clear(collction1_1);
    ForAll(
     collection1,
     Collect(
     collection1_1,
     ItemID: ThisRecord.'Item number',
     ...
    )

     

    Then remember to save and publish the App.

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • Community Power Platform Member Profile Picture
    on at

    Hey @v-jefferni ,

    Still keep changing...

  • v-jefferni Profile Picture
    on at

    Hi @Anonymous ,

     

    Please try:

    Clear(collction1_1);
    ForAll(
     collection1 As CC,
     Collect(
     collection1_1,
     ItemID: CC.'Item number',
     ...
    )

    then replace all ThisRecord with CC or what you have named the collection1.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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