From 2bd5742b17024604a889d5db013df685c3e84949 Mon Sep 17 00:00:00 2001 From: Markus Helbig <3304672+markush81@users.noreply.github.com> Date: Sun, 13 Oct 2024 15:14:16 +0200 Subject: [PATCH] powerautomate sends 202 when accepting content; MS doesn't support 1.5 via powerautomate (yet) --- services/tasks/alert.go | 2 +- services/tasks/templates/microsoft-teams.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/tasks/alert.go b/services/tasks/alert.go index 9bb2353b..9373e371 100644 --- a/services/tasks/alert.go +++ b/services/tasks/alert.go @@ -352,7 +352,7 @@ func (t *TaskRunner) sendMicrosoftTeamsAlert() { if err != nil { t.Log("Can't send microsoft teams alert! Error: " + err.Error()) - } else if resp.StatusCode != 200 { + } else if resp.StatusCode != 200 && resp.StatusCode != 202 { t.Log("Can't send microsoft teams alert! Response code: " + strconv.Itoa(resp.StatusCode)) } diff --git a/services/tasks/templates/microsoft-teams.tmpl b/services/tasks/templates/microsoft-teams.tmpl index 6c926026..723ebd24 100644 --- a/services/tasks/templates/microsoft-teams.tmpl +++ b/services/tasks/templates/microsoft-teams.tmpl @@ -6,7 +6,7 @@ "content": { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", - "version": "1.5", + "version": "1.4", "body": [ { "type": "TextBlock",