Unsure how to feed data to an Adaptive card
See original GitHub issueI created an adaptive card using the online designer. After that I added the json in the common.lg. I also added an Activity so I can call on the card from the Composer UI:
# TicketsSummeryCard(data, resultcount)
[Activity
Attachments = @{json(ticketssummeryjson(data, resultcount))}
]
# ticketssummeryjson(data, resultcount)
- '''
{
"type": "AdaptiveCard",
Writing out one of the arguments in the template works fine, like for example:
"text": "**@{resultcount} INCIDENTS**"
But I am unable to feed the template with any data like the online designer does. Just simply outputting the data does not work:
"$data": "@{data}",
or "$data": "@{json(data)}",
The data being a JSON response I got from the composer via a http-request.
Any suggestions would be appreciated.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to send Adaptive Card submit form data to parent Bot ...
I have tried to add Dialog in Bot Framework composer to show an Adaptive Card Submit form and added dialog.reesult output variables.
Read more >Getting Data from an Adaptive Card in Microsoft Teams
... how to get data from Adaptive Cards in Microsoft Teams. We will look at an easy to follow example, add new input...
Read more >How to retrieve input data from an adaptive card?
I've created an adaptive card using Adaptive card designer and have it successfully displaying in a chatbot but want to be able to...
Read more >Collect response from a user with Adaptive Card in Teams ...
Let's start by designing the card using the Adaptive card designer. Click on Open Sample, select Input Form as shown below.
Read more >Adaptive Cards | D365 Demystified
With the above Adaptive Card, you'll need to work in https://adaptivecards.io/ and paste the Card payload here and then save it. Also, you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @WizX20 The latest Adaptive Card has been migrated to our Template format, the link is here: https://docs.microsoft.com/en-us/adaptive-cards/templating/ So, there will be no ambiguity in the future😊
Hi @cwhitten, I’m not sure what you are trying to say but this is supported by the Adaptive Cards as I demonstrated here. But I’m very satisfied with @Danieladu his answer. So I guess closing this issue is fine.