You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The card does not render at all in the designer. I could not find any documentation on the differences between property names as supported in the binding syntax vs. legal JSON key names. I tried a variety of escaping techniques with no success.
Expected Outcome
A way to bind to a JSON key that contains whitespace.
Actual Outcome
Card does not render in the designer
Value is rendered as "${unit price}" in Copilot
The behavior you're observing is due to a current limitation in the Adaptive Cards templating engine. Specifically, binding expressions do not support JSON keys that contain whitespace (e.g., "unit price"). As a result, expressions such as ${unit price} are not parsed correctly, which can lead to rendering failures or fallback behavior.
To resolve this, we recommend one of the following approaches:
Rename keys in your data model
Update your payload to use keys without spaces: { "type": "TextBlock", "text": "Price ${unit_price}" }
Preprocess your data before binding:
If you do not control the data source, consider preprocessing the payload to convert keys with spaces into a more template-friendly format (e.g., replacing spaces with underscores) before rendering the card.
Target Application
Teams, Copilot
Application Operating System
Windows
Schema Version
1.4
Problem Description
Given this card
and this payload
The card does not render at all in the designer. I could not find any documentation on the differences between property names as supported in the binding syntax vs. legal JSON key names. I tried a variety of escaping techniques with no success.
Expected Outcome
A way to bind to a JSON key that contains whitespace.
Actual Outcome
Card does not render in the designer
Value is rendered as "${unit price}" in Copilot
Card JSON
Repro Steps
No response
The text was updated successfully, but these errors were encountered: