Adaptive Cards JSON and Parameters

I can get it to work in a Plain text Message Content type, however we would like to pass parameters to a Custom Adaptive Card JSON instead – I can’t seem to get this to work.

I just wanted to ask if you could provide a simple example of this? So just the JSON with the Easymorph Parameter in it – I believe it may be a syntax issue but I can’t find any material online to help with this!

That should work (see below):

Just in case, here is the Adaptive card JSON:

{
  "type": "AdaptiveCard",
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.5",
  "body": [
    {
      "type": "TextBlock",
      "text": "Hello, {Name}!",
      "wrap": true,
      "style": "heading"
    }
  ]
}

Hi Dmitry, i've tried your suggestion and used the example, however it doesn't seem to recognise the parameter and just assumes its part of the message in the adaptive card:

Kind Regards
Mohit

Hi @Mohit1

We have verified that there is indeed an issue with embedding parameters in adaptive cards. We are working on a fix and will address it shortly.

The updated version has been published. @Mohit1, please try the updated version from our website.

Hi, this is great, thanks. Can confirm it's now working for me!

1 Like