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 / Unable to Delete a Date
Power Apps
Unanswered

Unable to Delete a Date

(0) ShareShare
ReportReport
Posted on by

Hi All,

 

I am using SharePoint List as my data source, and I have date columns which are not mandatory field for the record, everything works perfectly when I add a record, delete a record from PowerApps.

 

When I try to edit the record, it works fine except when I delete a date, for example, I already have a date "4/15/2021", now I want to empty this field, as I don't need the date anymore, I can operate in PowerApps with no errors, but when you come back to the record in PowerApps or in SharePoint list, the date "4/15/2021" is still there.

 

This happens as well when the data source is in Excel in OneDrive. Do you have similar experience? Thanks.

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    @Anonymous 

    Turn on Formula-level error management in Settings then Patch Blank() back to SP as your new Date, eg

     

    // Example code
    Patch( yourSPList, Lookup( yourSPList, ID = refID), {yourDateColumn: Blank()})

     

  • Community Power Platform Member Profile Picture
    on at

    @Anonymous ,

     

    Thanks, but I am using SubmitForm() function instead of Patch, not sure how it works.

  • Community Power Platform Member Profile Picture
    on at

    @Anonymous 

    For the Update property of the DataCard that relates to your date field, write some logic the sends back Blank if the date is deleted, eg

     

    If( IsBlank(DataCardValue1), Blank(), DataCardValue1.SelectedDate )

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