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 / Save button - collecti...
Power Apps
Answered

Save button - collections update/refresh

(0) ShareShare
ReportReport
Posted on by 235

Hi everyone, I am having a hard time figuring this one out. So I have a save button that saves the collection onto my SP lists. I have another button that generates the collection - new row button. As you can see on the client total (bottom) was incorrect as the collections update only when I hit the new row button.  How can I refresh the collections before saving them to my sp list in order to have the right amount? Thanks in advance.

 

rbalza_0-1630905204169.png

Here's new row button code

Collect(
 GalleryPricingData,
 {
 Job_x0020_Category: JobCategory.Selected.Result,
 Entity_x0020_Type: EntityType.Selected.Result,
 Job_x0020_Type: JobType.Selected.Result,
 Invoice_x0020_Description: InvoiceDescription.Value,
 Min_x0020_Fee: MinFee.Value,
 Qty: Quantity.Value,
 Nominal_x0020_Value: NominalValue.Value,
 Complexity_x0020_Value: ComplexityValue.Value,
 Total: Total.Value,
 Client_x0020_Name: ClientName.Selected.Result,
 ClientGroup: ClientGroup.Value,
 ClientCode: ClientCode.Value
 }
)

Save button code

 Collect(
 'Saved Data-18162676-8464-4e9f-ae16-3c8b172e614d',
 GalleryPricingData
 );
 Clear(GalleryPricingData);
 Reset(ClientName);
 Reset(ClientGroup);
 Reset(ClientCode);
 Notify(
 "Record has been succesfully saved",
 Success,
 2000
 );
Categories:
  • WarrenBelz Profile Picture
    156,566 Most Valuable Professional on at

    Hi @rbalza ,

    You have not included the formula on the total control

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @rbalza 

    you can use the below steps to overcome your issue 

     

    1) Apply the same Patch/Update to the collection that you are applying to the data source.

    2) Re-run whatever code you ran to create the collection, to begin with.  Make sure to use a Clear() or ClearCollect as the first statement or you'll get duplicates.

     

    Thank You

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @rbalza :

    This thread seem the same like this one:

    Solved: Re: Saving updated gallery (collections) / Auto-re... - Page 3 - Power Platform Community (microsoft.com)

    If this problem is resolved,please consider marking this reply as a 'solution' to help others.

    If you still have any questions, please let me know.

    Best Regards,
    Bof

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard