MS teams Incoming Webhook Generating 400 to send Text Formats

%3CLINGO-SUB%20id%3D%22lingo-sub-1732620%22%20slang%3D%22en-US%22%3EMS%20teams%20Incoming%20Webhook%20Generating%20400%20to%20send%20Text%20Formats%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1732620%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22votecell%20post-layout--left%22%3E%3CDIV%20class%3D%22js-voting-container%20grid%20fd-column%20ai-stretch%20gs4%20fc-black-200%22%3E%3CSPAN%3EI%20was%20trying%20to%20post%20some%20notifications%20from%20Azure%20DevOps%20Pipeline%20notifications%20using%20curl%20to%20MS%20teams%20channel.%20I%20used%20the%20Text%20Features%20Adaptive%20card%20from%20the%20MS%20Documentation%2C%20it%20was%20unable%20to%20post%20the%20message.%20other%20adaptive%20cards%20are%20able%20to%20post%20notifications%20with%20below%20curl%20command.%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22postcell%20post-layout--right%22%3E%3CDIV%20class%3D%22s-prose%20js-post-body%22%3E%3CPRE%3Ecurl%20-XPOST%20-H%20%22Content-type%3A%20application%2Fjson%22%20-d%20'%7B%0A%22%24schema%22%3A%20%22http%3A%2F%2Fadaptivecards.io%2Fschemas%2Fadaptive-card.json%22%2C%0A%22type%22%3A%20%22AdaptiveCard%22%2C%0A%22version%22%3A%20%E2%80%9C1.0%E2%80%9D%2C%0A%22body%22%3A%20%5B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22type%22%3A%20%22TextBlock%22%2C%0A%20%20%20%20%20%20%20%20%22text%22%3A%20%22This%20is%20some%20**bold**%20text%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22type%22%3A%20%22TextBlock%22%2C%0A%20%20%20%20%20%20%20%20%22text%22%3A%20%22This%20is%20some%20_italic_%20text%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22type%22%3A%20%22TextBlock%22%2C%0A%20%20%20%20%20%20%20%20%22text%22%3A%20%22-%20Bullet%20%5Cr-%20List%20%5Cr%22%2C%0A%20%20%20%20%20%20%20%20%22wrap%22%3A%20true%0A%20%20%20%20%7D%2C%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22type%22%3A%20%22TextBlock%22%2C%0A%20%20%20%20%20%20%20%20%22text%22%3A%20%221.%20Numbered%5Cr2.%20List%5Cr%22%2C%0A%20%20%20%20%20%20%20%20%22wrap%22%3A%20true%0A%20%20%20%20%7D%2C%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22type%22%3A%20%22TextBlock%22%2C%0A%20%20%20%20%20%20%20%20%22text%22%3A%20%22Check%20out%22%0A%20%20%20%20%7D%0A%5D%0A%7D'https%3A%2F%2Foutlook.office.com%2Fwebhook%2Ffdb-XXXX-XXXX-XXXX%2Fe966e859-4ec9-497a-b1b8-5e6fadb19404%20%0A(sample%20Income%20web-Hook)%3C%2FPRE%3E%3CP%3EI%20am%20receiving%20the%20Invalid%20webhook%20URL%20or%20HTTP%20400%20Bad%20Request%20and%20Summary%20or%20Text%20is%20the%20required%20message.%20can%20MS%20Teams%20adaptive%20cards%20support%20the%20Text%20feature%20by%20incoming%20webhook%20notifications%3F%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1732620%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Ems%20teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor
I was trying to post some notifications from Azure DevOps Pipeline notifications using curl to MS teams channel. I used the Text Features Adaptive card from the MS Documentation, it was unable to post the message. other adaptive cards are able to post notifications with below curl command.
curl -XPOST -H "Content-type: application/json" -d '{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": “1.0”,
"body": [
    {
        "type": "TextBlock",
        "text": "This is some **bold** text"
    },
    {
        "type": "TextBlock",
        "text": "This is some _italic_ text"
    },
    {
        "type": "TextBlock",
        "text": "- Bullet \r- List \r",
        "wrap": true
    },
    {
        "type": "TextBlock",
        "text": "1. Numbered\r2. List\r",
        "wrap": true
    },
    {
        "type": "TextBlock",
        "text": "Check out"
    }
]
}'https://outlook.office.com/webhook/fdb-XXXX-XXXX-XXXX/e966e859-4ec9-497a-b1b8-5e6fadb19404 
(sample Income web-Hook)

I am receiving the Invalid webhook URL or HTTP 400 Bad Request and Summary or Text is the required message. can MS Teams adaptive cards support the Text feature by incoming webhook notifications?

0 Replies