question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unsure how to feed data to an Adaptive card

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Danieladucommented, May 27, 2020

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.

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😊

0reactions
WizX20commented, Apr 2, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found