使用当前日期和时间更新SharePoint字段



我创建了一个SharePoint列表,其中有一个按钮,当您单击它时,它会更新更新列中数据的人。我一辈子都想不出如何在另一列中插入当前日期和时间。我确信我只是遗漏了一些语法。iv也尝试过[今日]。正在更新的列设置为DateTime。它需要是别的东西吗?

{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "button",
"txtContent": "Update Runbook",
"customRowAction": {
"action": "setValue",
"actionInput": {
"UpdatedBy": "@me",
"RunbookLastUpdated": "Now ()"
}
}
}

似乎可以通过与Power Automate集成来实现这一要求。

参考:

https://techcommunity.microsoft.com/t5/sharepoint/json-syntax-clickable-button-to-capture-record-the-time-and-date/m-p/2581811

最新更新