Adaptive card with webhooks

trying to work with the Adaptive card. Make the actionable Adaptive card in Microsoft then send it to MS teams through webhook. with the message card, it working fine. but with the JSON it not working.
Adaptive card site:

[{"id":"c9f65f0f.c3fed","type":"function","z":"daf5b00d.d35cb","name":"Stock","func":"msg.payload={\n \"$schema\": \"http://adaptivecards.io/schemas/adaptive-card.json\",\n \"type\": \"AdaptiveCard\",\n \"version\": \"1.0\",\n \"body\": [\n {\n \"type\": \"ColumnSet\",\n \"id\": \"1ede2aba-61b9-faa0-9895-9ed0c26b2e6f\",\n \"columns\": [\n {\n \"type\": \"Column\",\n \"id\": \"e5756242-0963-37a2-7cb4-4397886d60bb\",\n \"padding\": \"None\",\n \"width\": \"stretch\",\n \"items\": [\n {\n \"type\": \"TextBlock\",\n \"id\": \"20f3833e-0435-5c87-fad1-b528e0046fb6\",\n \"text\": \"Company Name\",\n \"wrap\": true\n }\n ],\n \"verticalContentAlignment\": \"Center\"\n },\n {\n \"type\": \"Column\",\n \"id\": \"74215a26-fa8b-e549-cced-7f99fd34a661\",\n \"padding\": \"None\",\n \"width\": \"auto\",\n \"items\": [\n {\n \"type\": \"Image\",\n \"id\": \"795047e2-e63e-6e14-07ba-5a3e13323dff\",\n \"url\": \"https://amdesigner.azurewebsites.net/samples/assets/PlaceHolder_Person.png\",\n \"size\": \"Small\"\n }\n ],\n \"horizontalAlignment\": \"Right\"\n }\n ],\n \"padding\": {\n \"top\": \"Small\",\n \"bottom\": \"Small\",\n \"left\": \"Default\",\n \"right\": \"Small\"\n },\n \"style\": \"emphasis\"\n },\n {\n \"type\": \"Container\",\n \"id\": \"fbcee869-2754-287d-bb37-145a4ccd750b\",\n \"padding\": \"Default\",\n \"spacing\": \"None\",\n \"items\": [\n {\n \"type\": \"TextBlock\",\n \"id\": \"44906797-222f-9fe2-0b7a-e3ee21c6e380\",\n \"text\": \"[#83] Calls are getting dropped unexpectedly\",\n \"wrap\": true,\n \"weight\": \"Bolder\",\n \"size\": \"Large\"\n },\n {\n \"type\": \"TextBlock\",\n \"id\": \"f7abdf1a-3cce-2159-28ef-f2f362ec937e\",\n \"text\": \"We have this ongoing issue for the last one week. Outgoing calls from our account sometime get dropped unexpectedly. We need a quick resolution!\",\n \"wrap\": true\n }\n ]\n },\n {\n \"type\": \"Container\",\n \"id\": \"77102c5d-fde2-e573-4ea5-66022d646d64\",\n \"padding\": {\n \"top\": \"Small\",\n \"bottom\": \"Small\",\n \"left\": \"Small\",\n \"right\": \"Default\"\n },\n \"spacing\": \"None\",\n \"separator\": true,\n \"items\": [\n {\n \"type\": \"TextBlock\",\n \"id\": \"42654e7e-cece-b419-867a-3e3ef4076870\",\n \"text\": \"[View in portal](https://amdesigner.azurewebsites.net)\",\n \"wrap\": true,\n \"color\": \"Accent\",\n \"horizontalAlignment\": \"Right\"\n }\n ],\n \"horizontalAlignment\": \"Right\"\n }\n ],\n \"padding\": \"None\"\n}\n\n\n\nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":530,"y":260,"wires":[["dd99d4d6.e11c18"]],"icon":"node-red/debug.svg"},{"id":"dd99d4d6.e11c18","type":"http request","z":"daf5b00d.d35cb","name":"","method":"POST","ret":"txt","paytoqs":"ignore","url":"https://outlook.office.com/webhook/e27191ea-a794-4e6f-a989-0ade4848e324@2ae811bd-fe54-4196-ac87-510b13b8dd8c/IncomingWebhook/ba7a0dbaa8dc4c58884eb6c58e981704/c61386c7-e69c-453d-8e13-cfbedbeed529","tls":"","persist":false,"proxy":"","authType":"","x":740,"y":260,"wires":[["b6bfed45.ea194"]]},{"id":"b6bfed45.ea194","type":"debug","z":"daf5b00d.d35cb","name":"success","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":920,"y":260,"wires":[]},{"id":"65d73590.e2475c","type":"inject","z":"daf5b00d.d35cb","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":380,"y":240,"wires":[["c9f65f0f.c3fed"]]}]

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.