adaptive-cards-py icon indicating copy to clipboard operation
adaptive-cards-py copied to clipboard

Summary of Message is Unable to be Set

Open YorithTheDreamer opened this issue 10 months ago • 3 comments

With non-adaptive cards, one could set a summary field to change the notification text to provide context. Regrettably, using these adaptive cards results in very generic toast notifications that are difficult to differentiate: image

Is the summary field an option in adaptive cards or is this managed in the workflow side of things? I tried to plumb the depths of the MS documentation but failed to come up in either direction, and am hoping this functionality can be added to this package in some capacity. I could take point if I get directed to where it can be configured. I imagined it would be in the msteams header but I am struggling to come up with an appropriate option.

YorithTheDreamer avatar Jan 02 '25 14:01 YorithTheDreamer

Just dug into the same question today. It seems the answer is “No”.

See discussions here and here.

zverok avatar Jan 03 '25 11:01 zverok

Hey @YorithTheDreamer, hey @zverok, thanks @YorithTheDreamer for opening the issue and thanks @zverok for providing some further information. You both seem to be right. According to the documentation and also the links you provided, this feature might not yet be available. You could probably try to implement this workaround on your side, but its for sure not the most intuitive way. I'll keep and eye on that though and start the integration, once something is possible with adaptive cards. Until then, you might need to find a way on the workflow side. I am sorry!

EDIT: Here is another open issue, which tries to address that: #9053 Teams Preview for AdaptiveCards

dennis6p avatar Jan 03 '25 13:01 dennis6p

As I was mentionning in the linked issue, I ended up getting something working using bot framework but it's not exaclty consistent. For that I use fallbackText, speak. I also set summary but at the Activity level...

Majority of the times I have the expected text in the preview, but on some updates or some case, it just give-up and I got the Card preview...

babs avatar Jan 11 '25 13:01 babs