Scenario : I have saved an item to the SharePoint list and later decided to remove data from some fields (Date field, User field etc). Edit the item and delete the field value and Save it back to datasource (SharePoin list / SQL database)
Issue : PowerApps does not update the field to empty / null value. The field value remains as such in list.
Solution : Enable the "Experimental features" as shown in below screenshot. This will resolve the issue and you will be able to update field value to null after that.
Reference : https://powerapps.microsoft.com/en-us/blog/new-feature-error-handling-and-writing-null-values-to-dat...
Solved! Go to Solution.
Hello,
I have changed the following in Card under Update..
Now an empty field is transferred to the database. I think this could also work for Sharepoint.
I did not find the experimental option under my settings.
Sorry for my English.
Greeting René
None of these answers worked for me and I really did not want to recreate the date columns in separate text columns.
I had to use this formula on the submit button:
SubmitForm(Form1); If(Or(IsBlankOrError(DataCardValue8.SelectedDate), IsBlankOrError(DataCardValue9.SelectedDate)), RecordsRetentionSetNullDates.Run(RecordsRetentionList.Selected.ID, IsBlank(DataCardValue8.SelectedDate), IsBlank(DataCardValue9.SelectedDate)), "");
And set up a corresponding flow to input those null values in the date fields.
Just in case someone is dealing with this issue still, you only need to use the name of the column sharepoint assings to it, not the one powerapps reads, as an example
Patch(
'Loan Equipment',
Gallery1.Selected,
{
STATUS: {Value: "IN STOCK"},
'End User': "",
'User''s Manager': "",
'Date_x0020_Loaned':Blank(),
'Date_x0020_of_x0020_Return': Blank(),
Comment: "",
Comments: "",
Correo: ""}
Powerapps finds these columns as "Date Loaned" and Date of return", you need to use the sharepoint column name, you can find it at the address bar once you are in the column settings in the list settings of your sharepoint list.
This is why it doesn't give you an empty registry in a date field in sharepoint.
I hope it helps someone 🙂
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 |
---|---|
195 | |
67 | |
46 | |
41 | |
28 |
User | Count |
---|---|
255 | |
119 | |
86 | |
84 | |
83 |