Forum Discussion

E2020049's avatar
E2020049
Copper Contributor
Oct 02, 2024

Auto Populate date in a microsoft list column based off an action in another column

Hello

 

I am attempting to improve a action list we have created. The improvement is adding a "date completed" column to each action. Is there a way to auto populate the "date complete" column when status of the action is change to "completed"? We can see the version history but would like this auto populated.

3 Replies

  • michalkornet's avatar
    michalkornet
    Iron Contributor

    Hi E2020049, you can use a Power Automate flow with a SharePoint item update trigger. Then, using a condition, if the status is ‘Completed’, change the ‘Date Complete’ column to the current date.

     

    Another option is to add a button using column formatting with the following code. After clicking, the status and date will be changed.

     

    {
    "elmType": "button",
    "txtContent": "Complete Task",
    "customRowAction": {
    "action": "setValue",
    "actionInput": {
    "Status": "Completed",
    "DateComplete": "@now"
    }
    }
    }

Resources