cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Enter Null value for SharePoint date.

Hi
I have built a flow which needs to delete a date from a sharepoint list and return a blank value.

Does anyone know how to do this?

Regards
Chris
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Enter Null value for SharePoint date.

Hi @Barber_Chris ,

 

If you want to remove the value of a Date field in the list, you could use Update item action.

For example, I created a field of type Date, the field name is Date.

  • First use Get items action to get all the items, and then iterate through all the items.
  • Configure Update item action and use Expression to empty the field.

Image reference:12.PNG

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Enter Null value for SharePoint date.

You could do this with some schema magic utilizing the Workflow Definition LanuageData Operations and Logical Expressions. However, the easiest and quickest way to do this would likely be to use a "reference" date/time column that is set to NULL that you can copy to the existing date/time column.

The basic Flow layout could look something like this: CopyNULLDate.PNG

Notice, that you'd want to set the views for each List in SharePoint settings to match the List views you want to update. Then, in the Date/Time column in the Update item - SOURCE COLUMN LIST, you would put the Parameter ID for the Get items - NULL COLUMN LIST's empty Date/Time column.

You could add the update item step in an apply to each as needed if you need to do it or the entire column. 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Highlighted
Community Support
Community Support

Re: Enter Null value for SharePoint date.

Hi @Barber_Chris ,

 

If you want to remove the value of a Date field in the list, you could use Update item action.

For example, I created a field of type Date, the field name is Date.

  • First use Get items action to get all the items, and then iterate through all the items.
  • Configure Update item action and use Expression to empty the field.

Image reference:12.PNG

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (8,279)