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 / Save data in a collection
Power Apps
Unanswered

Save data in a collection

(0) ShareShare
ReportReport
Posted on by

Hi all!

Im triying to save specific values in a collection, yesterday was working porpertly but today at the moment to save the same values nothing happens and the collection still empty, im using the next formula:

 

 

 

ForAll(
 Gallery7.AllItems;
 Collect(
 Evaluacion;
 {
 Categoria: Label9.Text;
 Topico: Title5.Text;
 Calificacion: Slider3.Value
 }
 )
)

 

 

 

When this was working the values were saved in the collection and then exported in a excel file via Power Automate:

Cesar_1888_0-1619711958556.png

 

So today im triying to save the same values in the collection but isnt working

Cesar_1888_1-1619712110976.png
This is how the app looks rigth now

Cesar_1888_0-1619712582662.png

 

 




Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    Your formula is backward and you are wasting the output of your ForAll.

     

    Consider the following change:

    Collect(Evaluacion;
     ForAll(Gallery7.AllItems;
     {
     Categoria: Label9.Text;
     Topico: Title5.Text;
     Calificacion: Slider3.Value
     }
     )
    )

     

    See if that is helpful and if not, let me know what the results are and we can proceed from there.

     

    I hope this is helpful for you.

  • Community Power Platform Member Profile Picture
    on at

    Hi! @RandyHayes 

    I tried the suggest change but still not working,

    Also tried to create a new collection to discart that "Evaluacion" collection was corrupted but it doesnt work too.

    Cesar_1888_0-1619715737433.png

    Yesterday I used the format provided by x-vida-msft on this post and applied to my app and works

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Save-data-from-Gallery-in-collection/td-p/390556

    And also if i remove the "ForAll" formula works again, but only save one records instead the 35 need it

    Cesar_1888_1-1619715809918.png

    Cesar_1888_2-1619715926417.png

     

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    So technically the formula I provided should work for you.

    But I am seeing some discrepancy in your pictures.

    You show a gallery with califcacions of 5.  You then show a collection with 5 in it.  You then show an Excel file with 2 in it.  

    Perhaps this is a clue as to something going wrong?

  • Community Power Platform Member Profile Picture
    on at

    @RandyHayes 

    I used an old file as reference to show that is only saving one record.

    Let me check all the things on the screen to see if there's anormally affecting the formula.

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard