Forum Discussion
Updating a list date column
- May 07, 2020
Got it, thanks!
rbutgins21 You can do in multiple ways and easier option using MS Flow or SharePoint Workflow on updates of the list item check if the status equals to resolved then set then set the resolved date column to today's date. Just make sure you set the date once to that use a additional column something like resolved date updated =Yes. This helps you to prevent updating this column any further updates to the column.
Let you have three columns and status is In Progress.
Status | Resolved Date | Resolved Date Updated
In Progress | EMPTY | NO
------------------------------------------------------------------
Once the status is changed to resolved
Status | Resolved Date | Resolved Date Updated
In Progress | Today's Date | YES
So when you are checking the logic make sure check Resolved Date is empty and Resolved Date Updated==No to make the logic error proof.
Hope this helps.
- rbutgins21May 05, 2020Brass Contributor
That is similar to what I was trying, I have attached a couple of screen shots of my flow, am I going down the correct path?
āā
- rbutgins21May 06, 2020Brass Contributor
I have my flow working, just not sure how to load the current date into the Resolved Date list column using and update item action. Any suggestions would be greatly appreciated!!!
- Vikram_SamalMay 06, 2020MCT
rbutgins21 You need to declare a variable and set the value in that something like this:
the Expression you need to set is :
formatDateTime(utcNow(),'yyyy-MM-dd')
then set the variable value in the field in update item or your action:
Hope this helps and please mark the response as answer if it resolves your problem