Teams webhook — recovered example

Inspect the recovered Teams webhook and Adaptive Card example. The workflow setup relies on held screenshots and the PowerShell body is fragmented; no working send procedure is established here.

Search for "Send webhook"

Screenshot retained for review

Screenshot retained for review

Copy webhook link

Screenshot retained for review

$TeamsWebhookUrl = "<Replace with webhook>"
$payload = @{

type = "message"

attachments = @(

@{

contentType = "application/vnd.microsoft.card.adaptive"

content = @{

"`$schema" = "http://adaptivecards.io/schemas/adaptive-card.json"

type = "AdaptiveCard"

version = "1.5"

body = @(

@{

type = "TextBlock"

text = "Test Alert: Hello World Webhook"

size = "Large"

weight = "Bolder"

color = "Attention"

}

@{

type = "TextBlock"

text = "This is a line of text you can add to your message."

wrap = $true

}

@{

type = "FactSet"

facts = @(

@{ name = "Title"; value = "FactSet Title" }

@{ name = "Time"; value = "DATE: $((Get-Date).ToString("yyyy-MM-dd HH:mm:ss"))" }

@{ name = "Status"; value = "STATUS: HELLO WORLD TEST COMPLETE" }

)

}

)

}

}

)

} | ConvertTo-Json -Depth 10

Invoke-RestMethod -Uri $TeamsWebhookUrl -Method Post -Body $payload -ContentType "application/json" | Out-Null