May 05 2020 06:49 AM
I am using an issue tracking list on my sharepoint site - I need to be able to update the resolved date when the status changes to resolved.
May 05 2020 12:49 PM - edited May 05 2020 12:50 PM
@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.
May 05 2020 01:11 PM
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?
May 06 2020 01:17 PM
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!!!
May 06 2020 04:02 PM
@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
May 07 2020 09:40 AM
@rbutgins21 The first part is correct not the second part. After the first part in variable "ResolveDate" today's date is there, now when updating the list item set the 'Resolved Date' field value with this variable.
Hope this helps and mark the response appropriately if it helps in this.
May 07 2020 12:45 PM
Thanks for your help Vikram_Samal!!
I marked the wrong message as the best response, couldn't have done it without you!
May 07 2020 11:14 AM
SolutionGot it, thanks!