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
[.Net][AdaptiveCards.AdaptiveSerializationException] [AdaptiveCard.FromJson failed when i set isVisible attribute using a bool varaible from an object]
#4322
Closed
DreamBlack opened this issue
Jul 8, 2020
· 4 comments
· Fixed by #4345
Here is a copy of my template:
{
"type": "FactSet",
"facts": [
{
"title": "Resolved By:",
"value": "${ResolvedBy}"
},
{
"title": "Resolved At:",
"value": "{{DATE(${ResolvedAt}SHORT)}}"
}
],
"isVisible": "${ResolvedByVisible}",
"spacing": "Small",
"separator": true
}
There is a bool variable in my class named ResolvedByVisible.
string cardJson = template.Expand(incident);
var response = context.Activity.CreateReply();
AdaptiveCardParseResult result = AdaptiveCard.FromJson(cardJson);//failed
I got an exception:
How can i control visibility of the factset by a variable
The text was updated successfully, but these errors were encountered:
Here is a copy of my template:
{
"type": "FactSet",
"facts": [
{
"title": "Resolved By:",
"value": "${ResolvedBy}"
},
{
"title": "Resolved At:",
"value": "{{DATE(${ResolvedAt}SHORT)}}"
}
],
"isVisible": "${ResolvedByVisible}",
"spacing": "Small",
"separator": true
}
There is a bool variable in my class named ResolvedByVisible.
string cardJson = template.Expand(incident);
var response = context.Activity.CreateReply();
AdaptiveCardParseResult result = AdaptiveCard.FromJson(cardJson);//failed
I got an exception:
How can i control visibility of the factset by a variable
The text was updated successfully, but these errors were encountered: