Creating a hero card in the following format:
herocardTemplate(image)
[HeroCard
buttons = ${cardActionTemplate('messageBack', image.displayText,"{"msgbck": "" + image.qnaid+ ""}")}
]
cardActionTemplate( type, title, value)
[CardAction
type = ${if(type == null, 'messageBack', type)}
Value = ${value}
Text = ${title}
Title = ${title}
displayText = ${title}
]
heroCards(response)
-${foreach(response, image, herocardTemplate(image))}
SendActivity_p6pBNy()
[Activity
Attachments = ${heroCards(dialog.response)}
AttachmentLayout = carousel
]
is not generating a carousel format in MS Teams, but works fine in Webchat and PVA.
Please let me know how to handled it for MS Teams.