{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1422","repository_url":"https://api.github.com/repos/Microsoft/BotBuilder","labels_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1422/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1422/comments","events_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1422/events","html_url":"https://github.com/Microsoft/BotBuilder/issues/1422","id":182486086,"number":1422,"title":"builder.CardAction.dialogAction not working with carousel layout","user":{"login":"vaibhavi-joshi","id":11070241,"avatar_url":"https://avatars.githubusercontent.com/u/11070241?v=3","gravatar_id":"","url":"https://api.github.com/users/vaibhavi-joshi","html_url":"https://github.com/vaibhavi-joshi","followers_url":"https://api.github.com/users/vaibhavi-joshi/followers","following_url":"https://api.github.com/users/vaibhavi-joshi/following{/other_user}","gists_url":"https://api.github.com/users/vaibhavi-joshi/gists{/gist_id}","starred_url":"https://api.github.com/users/vaibhavi-joshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vaibhavi-joshi/subscriptions","organizations_url":"https://api.github.com/users/vaibhavi-joshi/orgs","repos_url":"https://api.github.com/users/vaibhavi-joshi/repos","events_url":"https://api.github.com/users/vaibhavi-joshi/events{/privacy}","received_events_url":"https://api.github.com/users/vaibhavi-joshi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-12T10:08:16Z","updated_at":"2016-10-12T19:50:47Z","closed_at":null,"body":"Hi\r\n\r\nI am using botbuilder 3.2.3 for node\r\n\r\nI was trying to bind an action with button for a hero card with **carousel layout**, but it's not able to trigger any action.\r\n\r\nso I tried the sample https://github.com/Microsoft/BotBuilder/blob/master/Node/examples/demo-skype/app.js from here, it is working if i use the same, but When I modify it by adding one more card and layout to carousel, it didn't work, **it's working for \"List\" Layou**t !!!\r\n\r\n`\r\nbot.dialog('/actions', [\r\n    function (session) { \r\n        session.send(\"Bots can register global actions, like the 'help' & 'goodbye' actions, that can respond to user input at any time. You can even bind actions to buttons on a card.\");\r\n\r\n        var msg = new builder.Message(session)\r\n\t\t\t.attachmentLayout(builder.AttachmentLayout.carousel)\r\n            .textFormat(builder.TextFormat.xml)\r\n\t\t\t.addAttachment\r\n            (\r\n                new builder.HeroCard(session)\r\n                    .title(\"Hero Card\")\r\n                    .subtitle(\"Space Needle\")\r\n                    .text(\"The <b>Space Needle</b> is an observation tower in Seattle, Washington, a landmark of the Pacific Northwest, and an icon of Seattle.\")\r\n                    .images([\r\n                        builder.CardImage.create(session, \"https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/Seattlenighttimequeenanne.jpg/320px-Seattlenighttimequeenanne.jpg\")\r\n                    ])\r\n                    .buttons([\r\n                        builder.CardAction.dialogAction(session, \"weather\", \"Seattle, WA\", \"Current Weather\")\r\n                    ])\r\n            );\r\n      \r\n\r\n\t\tmsg.addAttachment (\r\n                new builder.HeroCard(session)\r\n                    .title(\"Hero Card\")\r\n                    .subtitle(\"Space Needle\")\r\n                    .text(\"The <b>Space Needle</b> is an observation tower in Seattle, Washington, a landmark of the Pacific Northwest, and an icon of Seattle.\")\r\n                    .images([\r\n                        builder.CardImage.create(session, \"https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/Seattlenighttimequeenanne.jpg/320px-Seattlenighttimequeenanne.jpg\")\r\n                    ])\r\n                    .buttons([\r\n                        builder.CardAction.dialogAction(session, \"weather\", \"Seattle, WA\", \"Current Weather\")\r\n                    ])\r\n            );\r\n\r\n  \t\tsession.send(msg);\r\n        session.endDialog(\"The 'Current Weather' button on the card above can be pressed at any time regardless of where the user is in the conversation with the bot. The bot can even show the weather after the conversation has ended.\");\r\n    }\r\n]);\r\n`\r\n\r\nI am using msg.addAttachment as per my use case I need to add attachments inside one loop.\r\n\r\nAm I doing anything wrong ?Can any one help me How to use this with carousel ?\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/comments/253319026","html_url":"https://github.com/Microsoft/BotBuilder/issues/1422#issuecomment-253319026","issue_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1422","id":253319026,"user":{"login":"danmarshall","id":11507384,"avatar_url":"https://avatars.githubusercontent.com/u/11507384?v=3","gravatar_id":"","url":"https://api.github.com/users/danmarshall","html_url":"https://github.com/danmarshall","followers_url":"https://api.github.com/users/danmarshall/followers","following_url":"https://api.github.com/users/danmarshall/following{/other_user}","gists_url":"https://api.github.com/users/danmarshall/gists{/gist_id}","starred_url":"https://api.github.com/users/danmarshall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danmarshall/subscriptions","organizations_url":"https://api.github.com/users/danmarshall/orgs","repos_url":"https://api.github.com/users/danmarshall/repos","events_url":"https://api.github.com/users/danmarshall/events{/privacy}","received_events_url":"https://api.github.com/users/danmarshall/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T19:50:47Z","updated_at":"2016-10-12T19:50:47Z","body":"which channel are you using? Some channels have limits on how many buttons are shown."}}
{"actor":{"display_login":"danmarshall"}}