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.
Solved! Go to Solution.
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()})
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()})
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 )
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
199 | |
71 | |
50 | |
43 | |
30 |
User | Count |
---|---|
257 | |
126 | |
87 | |
84 | |
82 |