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
I have written a custom function in Javascript for Adaptive cards. Below is an example code, how I have created it :
import { Expression } from "adaptive-expressions";
const formatOutlookDate = (args: any) => {
const date = new Date(args[0]);
return `Formatted Outlook Date is: ${date.toDateString()}`;
};
Expression.functions.add("formatOutlookDate", formatOutlookDate);
Target Application
For my own application
Application Operating System
Linux
Schema Version
version: "1.0"
Problem Description
I have written a custom function in Javascript for Adaptive cards. Below is an example code, how I have created it :
I'm using it my template schema as below :
Now, when I run it, it gives me error as below screenshot :
Expected Outcome
Function should work instead of giving error as 'Unknown function'
Actual Outcome
As below screenshot :
Card JSON
Repro Steps
No response
The text was updated successfully, but these errors were encountered: