Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Hero Card, carousel is not Displaying in Teams #9523

@smithah

Description

@smithah

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions