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 / Patch is deleting date...
Power Apps
Answered

Patch is deleting datepicker value when saving

(0) ShareShare
ReportReport
Posted on by 378

Date is already in DatePicker10 but clears it out on Save

 

Patch(
SPList,
LookUp(
SPList,
ID = SharePointIntegration.Selected.'ID'
),

 

{
Date10: DatePicker10.SelectedDate

}

)

);

 

 

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @olsen9 

    What is the DefaultDate property of the datepicker?

  • olsen9 Profile Picture
    378 on at

    ThisItem.Date10

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

    @olsen9 

    Okay...working backward - What is ThisItem?  Is your datepicker in a form or a gallery?

     

  • olsen9 Profile Picture
    378 on at

    gallery

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

    @olsen9 

    Okay...next, what is the Items property of your Gallery?

  • olsen9 Profile Picture
    378 on at

    Filter(SPList, ID=SharePointIntegration.Selected.'ID')

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

    @olsen9 

    So you have a gallery table that will only have ONE record?  What does purpose does a gallery serve in this case?

     

    Back to your original statement though - "Date is already in DatePicker10 but clears it out on Save"

    When you refer to Save - are you referring to the Save button in the SharePoint interface?

    When you say it clears, are you stating that all the rest of the information is there but the DatePicker date disappears? 

  • olsen9 Profile Picture
    378 on at

    my gallery is for 10 items.  But the Save Icon (not interface save) I am using to patch updated records would clear out the date already in place.  I just republished the form and did a test on date10.  It did not clear out the date this time.  Strange.  I will monitor this and reach out if it happens again.

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @olsen9 

    Okay...let's see if you run into it again!

  • olsen9 Profile Picture
    378 on at

    @RandyHayes  spoke too soon, it just happened, you'll see in the version history the date should be there it got cleared out on save

    olsen9_1-1664471779885.png

     

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

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard