powerautomate sends 202 when accepting content; MS doesn't support 1.5 via powerautomate (yet)

This commit is contained in:
Markus Helbig 2024-10-13 15:14:16 +02:00
parent 27c7c5565a
commit 2bd5742b17
2 changed files with 2 additions and 2 deletions

View File

@ -352,7 +352,7 @@ func (t *TaskRunner) sendMicrosoftTeamsAlert() {
if err != nil { if err != nil {
t.Log("Can't send microsoft teams alert! Error: " + err.Error()) 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)) t.Log("Can't send microsoft teams alert! Response code: " + strconv.Itoa(resp.StatusCode))
} }

View File

@ -6,7 +6,7 @@
"content": { "content": {
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard", "type": "AdaptiveCard",
"version": "1.5", "version": "1.4",
"body": [ "body": [
{ {
"type": "TextBlock", "type": "TextBlock",