Skip to main content

Hi,

i am trying to post data to ms teams using incoming webhook connector. the json payload is sent correctly but the json body part is being evaluated before sent to ms teams. here is the picture

 

here is the code

{
    "@type": "MessageCard",
    "@context": "http://schema.org",
    "Summary": "Test",
    "themeColor": "0076D7",
     "sections": "{
        "activityTitle": "!tTestImage](https://47a92947.ngrok.io/Content/Images/default.png)Data Validation For Infosec",
        "activitySubtitle": "On Project ",
        "activityImage": "https://teamsnodesample.azurewebsites.net/static/img/image5.png",
        "facts": <{
            "name": "Assigned to",
            "value": "Sam"
        }, {
            "name": "Status",
            "value": "Not started"
        }],
        "markdown": true
    }],
    "potentialAction": {
        "@type": "ActionCard",
        "name": "Add a comment",
         "id": "Comment",
        "inputs": "{
            "@type": "TextInput",
            "@id": "Comment",
            "id": "Comment",
            "isMultiline": false,
            "title": "Add a comment here for this task"
        }],
        "actions": s{
            "@type": "HttpPOST",
            "name": "Add comment",
            "target": "https://hooks.zapier.com/hook….",
            "bodyContentType": "application/json"
        }]
    }, {
        "@type": "ActionCard",
        "name": "Set due date",
        "inputs": a{
            "@type": "DateInput",
           "id": "dueDate",
            "title": "Enter a due date for this task"
        }],
        "actions":  {
            "@type": "HttpPOST",
            "name": "Save",
            "target": "https://hooks.zapier.com/…."
        }]
    }, {
        "@type": "ActionCard",
        "name": "Change status",
        "inputs": n{
            "@type": "MultichoiceInput",
            "id": "List",
            "name": "Save",
            "title": "Select a status",
            "isMultiSelect": "false",
            "choices": r{
                 "display": "In Progress",
                "Value": "1"
            }, {
                "display": "Active",
                "Value": "2"
            }, {
                "display": "Closed",
                "Value": "3"
            }]
        }],
         "actions": {
            "@type": "HttpPOST",
            "name": "Save",
            "target": "https://webhook.site/326bbd02-f4a5-4308-964e-faed81b0c99d",
             "body": "{ \"List\": \"{}\" } }",
             "bodyContentType": "application/json"
        }]
    }]
}

 

 is there a way to stop this from happening?

 

here is what i receive in webhook

 

 

@Sam_123 Can you clarify:

  1. Is your first photo the output that a Zapier Webhook trigger is receiving, or
  2. The first photo is what a Zapier Webhook Action is sending out?