|
I'm guessing you're using Adaptive Cards Templating for this. Remember, this is (a) in preview only and (b) just one option for constructing an Adaptive Card. Basically, at the end of the day, the Card is just a string of JSON text so you can create it in 3 main ways: Using Templates, as you're doing now Doing string replacement of your own (e.g. var card = '..."text": "##Number##"...' and then card = card.Replace("##Number##", formattedNumberValue) Using strongly-typed options like the AdaptiveCards Nuget package for C#, for instance So, I'd suggest, if this is not possible using Templating, to look more at options 2 or 3 above. I described this a bit more , with some links to C# and Node examples. (责任编辑:) |
