
Announcements
Hello all!
I have set up an automation that will trigger an email from a post on a Teams Channel. It keeps triggering when there is no new post and I cannot seem to track down why.
I do see an "id" in the body output of the run. But there is no user attached to that, which makes sense because no one has actually posted in the channel.
This is what the body output looks like:
{
"@odata.type": "#microsoft.graph.chatMessage",
"replyToId": null,
"etag": "1671644100527",
"messageType": "systemEventMessage",
"createdDateTime": "2022-12-21T17:35:00.527Z",
"lastModifiedDateTime": "2022-12-21T17:35:00.527Z",
"lastEditedDateTime": null,
"deletedDateTime": null,
"subject": null,
"summary": null,
"chatId": null,
"importance": "normal",
"locale": "en-us",
"webUrl": "https://teams.microsoft.com/l/message/19%3Ad70fa87bd1634317ab58672516695a8d%40thread.tacv2/1671644100527?groupId=e9dbafae-4c48-4942-8291-2eeb1275d048&tenantId=3cc68561-f0c2-403c-8d26-5e0838715eaf&createdTime=1671644100527&parentMessageId=1671644100527",
"from": null,
"onBehalfOf": null,
"policyViolation": null,
"id": "1671644100527",
"body": {
"contentType": "html",
"content": "<systemEventMessage/>"
},
"channelIdentity": {
"teamId": "e9dbafae-4c48-4942-8291-2eeb1275d048",
"channelId": "19:d70fa87bd1634317ab58672516695a8d@thread.tacv2"
},
"attachments": [],
"mentions": [],
"reactions": [],
"eventDetail": {
"@odata.type": "#microsoft.graph.membersAddedEventMessageDetail",
"visibleHistoryStartDateTime": "0001-01-01T00:00:00Z",
"members": [
{
"id": "b940d97f-6332-46e5-ba01-4e1285823cf2",
"displayName": null,
"userIdentityType": "aadUser"
}
],
"initiator": {
"device": null,
"user": null,
"application": {
"id": "3cc68561-f0c2-403c-8d26-5e0838715eaf_62b732f7-fc71-40bc-b27d-35efcb0509de",
"displayName": null,
"applicationIdentityType": "aadApplication"
}
}
}
}
Can someone help to troubleshoot this?
This is the flow, pretty basic
That is very strange. Not sure what triggers the flow.
If you cannot get pt the root of it, you have two options
Option 1: Add a trigger condition so that it only triggers if the user object is not null.
Power Automate Trigger Conditions made EASY - Power Platform Community (microsoft.com)
Option 2: Add a condition action to check if the user is available, only then send the email.