Feb 18 2020 12:57 AM
Hello All,
I have followed the below steps in the dev environment for MS Teams App
1) created a custom connector
2) Configure custom connector in one channel
3) Using Postman I've posted Message cards. (Message card has Potential action and Action card for post data)
4) I am receiving an alert on the channel when I post data. (URL is MS teams incoming webhook)
5) I am able to see content but Action button is not visible in MS teams channel
I knew that MS teams support only Message card but here I am receiving the alert in the channel but unable to see buttons in it.
Can anyone suggest more on this?
JSON code sample
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"themeColor": "0076D7",
"summary": "Nadir executed action in VO",
"sections": [{
"activityTitle": "![TestImage](https://47a92947.ngrok.io/Content/Images/default.png)Larry Bryant created a new task",
"activitySubtitle": "On Project Tango",
"activityImage": "https://teamsnodesample.azurewebsites.net/static/img/image5.png",
"facts": [{
"name": "Assigned to",
"value": "Unassigned"
}, {
"name": "Due date",
"value": "Mon May 01 2017 17:07:18 GMT-0700 (Pacific Daylight Time)"
}, {
"name": "Status",
"value": "Not started"
}],
"markdown": true
}],
"potentialAction": [{
"@type": "ActionCard",
"name": "Add a comment",
"inputs": [{
"@type": "TextInput",
"id": "comment",
"isMultiline": false,
"title": "Add a comment here for this task"
}],
"actions": [{
"@type": "HttpPOST",
"name": "Add comment",
"target": "http://..."
}]
}, {
"@type": "ActionCard",
"name": "Set due date",
"inputs": [{
"@type": "DateInput",
"id": "dueDate",
"title": "Enter a due date for this task"
}],
"actions": [{
"@type": "HttpPOST",
"name": "Save",
"target": "http://..."
}]
}, {
"@type": "ActionCard",
"name": "Change status",
"inputs": [{
"@type": "MultichoiceInput",
"id": "list",
"title": "Select a status",
"isMultiSelect": "false",
"choices": [{
"display": "In Progress",
"value": "1"
}, {
"display": "Active",
"value": "2"
}, {
"display": "Closed",
"value": "3"
}]
}],
"actions": [{
"@type": "HttpPOST",
"name": "Save",
"target": "http://..."
}]
}]
}
Feb 19 2020 01:44 AM
I tried the given sample json and I could get the message card in the channel with buttons.
Can you please share which Teams version you are using and screenshot of the card you receive in the channel.
BTW, I have tried in Microsoft Teams Version 1.3.00.4411 (64-bit)-E.
Feb 19 2020 01:55 AM
Thanks for your quick response.
I am receiving below the card in my connector. And MS Teams version I am using is "1.3.00.362 (64-bit)."
Just another issue, which I am facing if you might know quick answer of it.
I am developing one App whereas I am facing issues in connector too. Some time connector is not getting saved.
Any chance we can join overcall, you might help me with this
Let me know your views on this.
Feb 20 2020 08:50 AM
@NadirRiyani, It seems connector is not saving properly. Have you implemented save handler for connector. If yes, then can you share code snippet for the save handler.
Mar 16 2020 03:39 AM
Solution@subhasish-MSFT Yes I have checked all handler of this.
I have found resolution of this.
Resolution: I need to add action URL while configuring the Connector.
Steps to resolve
1) Do you want to enable actions on your Connector cards? Select Yes
2) mention Action Web URL
Mar 16 2020 03:39 AM
Solution@subhasish-MSFT Yes I have checked all handler of this.
I have found resolution of this.
Resolution: I need to add action URL while configuring the Connector.
Steps to resolve
1) Do you want to enable actions on your Connector cards? Select Yes
2) mention Action Web URL