cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Barber_Chris
Level: Powered On

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 Team
Community Support Team

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
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 Team
Community Support Team

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

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

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!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,808)