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 button - collecti...
Power Apps
Unanswered

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:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @rbalza ,

    You have not included the formula on the total control

  • Community Power Platform Member Profile Picture
    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
    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

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