09-29-2021 06:16 AM
I am trying to create a card that show and notify our team who is on- call and show some basic information about the on-call users. The first iteration of this message I utilized markdown with the @mention syntax in order to notify the two individuals but also show all the useful information on the mouse-over popup.
**Primary** - <@personEmail:username1@compnay.com|Mr. Username1> **Backup** - <@personEmail:username2@compnay.com|Mrs. Username2>cards, developer, webex, Other Collaboration Topics
But now I'm moving to adaptive cards and would like to replicate the @mention feature there as well. My card looks like this:
In the following code for the primary section I'm trying to replace the primary_user variable with with a mention and its not working. Is there a way to do this and if not is some kind of support in development?
{ "type": "Column", "width": 100, "items": [ { "type": "ColumnSet", "columns": [ { "type": "Column", "items": [ { "type": "Image", "altText": "an image goes here", "url": f"data:image/png;base64,{primary_img}", "width": "35px", "spacing": "None", "isVisible": True, "separator": True, "horizontalAlignment": "left", "style": "Person" } ], "width": "40px" }, { "type": "Column", "items": [ { "type": "TextBlock", "text": "**Primary**", "weight": "Bolder", "spacing": "None" }, { "type": "TextBlock", "text": primary_user, "spacing": "None", "horizontalAlignment": "left" } ], "width": "stretch" } ] } ] }
10-07-2021 01:42 PM
AFAIK there isn't a way to do that exactly, but you might consider the 'show sub-card' feature as a possibility (though your app would need to provide the extra data to display, e.g. the data typically found in a Webex @mention tool-tip).
The current features of text blocks in a card comes as part of the adaptive card rendering code, which follows the spec (which does not provide any tool-tip like features for text block text markup). Possibly Webex clients could provide a custom enhancement for this as you describe (which I think is pretty worthy of consideration.) You can check here to vote for any existing similar suggestion and/or create a new one: https://ciscocollaboration.ideas.aha.io/
Might also be worth checking with the Webex dev support team directly: https://developer.webex.com/support
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide