Mar 03 2023 02:54 AM
Hello all,
I am desperately trying to use the latest version of the module adaptivecards-templating
--> https://www.npmjs.com/package/adaptivecards-templating?activeTab=versions.
So far I used the version 1.4.0. In this version was included the module adaptive-expression.
From version 2.0.0 the module adaptive-expression must be installed additionally.
I have also done that. However I get an exception that it becomes undefined.
Does anyone know how I can use the latest version 2.3.1 of adaptivecards-templating with adaptive-expression. As soon as I use the version 1.4.0 of adaptivecards-templating everything is good.
thank you in advance
mike
Mar 03 2023 06:17 AM
Mar 06 2023 11:02 AM
Mar 06 2023 11:03 PM
@Sayali-MSFT , thank you for your reply.
Yes - that is how it was described and of course I am aware of it. My question is in the direction of how I can include the adaptive-expressions and so also use it with adaptivecards-templating. Simply adding adaptive-expressions with npm does not work. It would be very helpful if I have an example of this.
Currently this is my configuration of the modules
I include the modules in the HTML page as follows.
It is not clear to me now if I have to include the adaptive-expressions explicitly? In the TS code I have seen that actually the adaptive-expressions is automatically included via import. However, also an attempt to include the module adaptive-expressions manually did not bring the desired success.
Mar 15 2023 02:52 AM
Mar 15 2023 03:04 AM - edited Mar 15 2023 03:12 AM
@Mikel85570 - Sorry for delay in response, please refer the below sample -
here we can use the below version-
"adaptive-expressions": "^4.18.0",
"adaptivecards-templating": "^2.3.1"
const {
ActionTypes,
CardFactory,
MessageFactory,
TeamsActivityHandler,
TeamsInfo,
TurnContext
} = require('botbuilder');
const TextEncoder = require('util').TextEncoder;
const ACData = require('adaptivecards-templating');
const template = new ACData.Template(AdaptiveCardTemplate);
Sample Link-Microsoft-Teams-Samples/teamsConversationBot.js at 14fded521862f3ee9861f07bb1497c2a190ee5f6 · Office...