I have a workflow to be triggered from Teams Graph API whenever messages get updates (reacts). Since there don't appear to be direct events per react, I'm retrieving said chatMessage object and iterating each item in the reactions array.
On trigger I've snapshotted a datetime into the recent past say 30 seconds.
"variables": [
{
"name": "recentNow",
"type": "string",
"value": "@addSeconds(utcNow(), -30)"
}
Then for each reaction I check if the createdDateTime is greater.
"expression": {
"and": [
{
"greater": [
"item()?['createdDateTime']",
"@variables('recentNow')"
]
}
]
}
But it somehow always determines all including old datetimes are newer.
2025-03-20T10:05:58.43Z > 2025-03-20T10:18:53.8635391Z
2025-03-20T10:07:07.085Z > 2025-03-20T10:18:53.8635391Z
2025-03-20T10:19:23.118Z > 2025-03-20T10:18:53.8635391Z
I double check in Javascript and that compares correctly as expected. What is different about Power Automate compare operators?