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 / SP list not updating f...
Power Apps
Unanswered

SP list not updating from editable grid in PowerApps

(0) ShareShare
ReportReport
Posted on by 24

Good day

I have an editable grid in Powerapps that is linked to a SP list. Users need to enter dispatch date and receive date in the grid and then it should save to the SP list. I used this formula in the OnSelect function of the SAVE button 

Patch('HR File track list',Update(MySPCollection),{field_7:DatePicker3_1.SelectedDate,field_8:DatePicker3.SelectedDate}) 

PLease assist.

Adwene_1-1649402268193.png

 

 

Categories:
  • C-Papa Profile Picture
    1,836 on at

    Try this

    Patch('HR File track list',{ID:ThisItem.ID},{field_7:DatePicker3_1.SelectedDate,field_8:DatePicker3.SelectedDate})

  • Adwene Profile Picture
    24 on at

    That works perfect thank you, but after the save the dates disappears from the grid in PA.

    Is there a way that the dates can stay in grid in PA?

  • C-Papa Profile Picture
    1,836 on at

    you need to change the default date of the date picker to which ever column contains the date in the sharepoint list, i.e. Thisitem.field_7

    If your column is not a Date Time column but just a text column you will need to convert it to a date i.e. DateValue(Thisitem.field_7)

  • Adwene Profile Picture
    24 on at

    If I do that then the grid looks like this. Once the dates are typed in, then the dates I typed disappear and the grid change back to this.

    Adwene_0-1649412009901.png

     

  • Adwene Profile Picture
    24 on at

    Only first line of my SP list updates the dates.

    Adwene_1-1649412203752.png

     

  • C-Papa Profile Picture
    1,836 on at

    you have a save button on each line, therefore, you are only updating one record at a time, not all records. The dates are appearing correctly, there date value in SharePoint is blank, so it will display the data as shown in your image, but notice the two that you have saved have the correct dates in. 

  • Adwene Profile Picture
    24 on at

    The dates I enter in line 1 of grid, saves next to last line in grid.

    Adwene_0-1649418371280.png

     

  • C-Papa Profile Picture
    1,836 on at

    on your gallery items are you sorting it by date modified? if you are, when you save the list order will change

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard