I am creating one flow to trigger an automated event when it matches the conditions. However, it is not working and throwing error.
Condition:
{
"@odata.type": "#microsoft.graph.chatMessage",
"etag": "",
"messageType": "message",
"createdDateTime": "2020-12-28T13:49:26.041Z",
"lastModifiedDateTime": "2020-12-28T13:49:26.041Z",
"summary": "New incident has been opened",
"importance": "normal",
"locale": "en-us",
"webUrl": "",
"id": "",
"from": {
"application": {
"id": "",
"displayName": "",
"applicationIdentityType": ""
}
},
"body": {
"contentType": "html",
"content": "<>"
},
"channelIdentity": {
"teamId": "",
"channelId": ""
},"attachments": [
{
"id": "",
"contentType": "application/vnd.microsoft.teams.card.o365connector",
"content": "{\r\n \"summary\": \"New incident has been opened\",\r\n \"text\": \"\",\r\n \"themeColor\": \"0076D7\",\r\n \"sections\": [\r\n {\r\n \"text\": \"\",\r\n \"facts\": [\r\n {\r\n \"name\": \"Incident\",\r\n \"value\": \"<p></p>\"\r\n },\r\n {\r\n \"name\": \"Caller\",\r\n \"value\": \"<p>Event Management</p>\"\r\n },\r\n {\r\n \"name\": \"Priority\",\r\n \"value\": \"<p>1 - Critical</p>\"\r\n }Hi @Mcmillan_Mac,
You could have a try this expression:
triggerOutputs()?['attachments'][0]['content']
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Same issue
Hi @Mcmillan_Mac,
Could you please tell me what's trigger are you using?
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
triggerOutputs()?['attachments/content'] > Contains > Critical
This is the trigger condition.
Trigger is an alert in our alerting tool which sends adaptive card in teams channel.