Redirect with data object. Here is the code. Presntly it was not working
{
"$schema": ".../schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"spacing": "none",
"text": "Click below to authenticate",
"isSubtle": false,
"wrap": true
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Click me for signin",
"data": {
"email":"[email protected]",
"msteams": {
"type": "signin",
"value": "my-lambda-function-url"
}
}
}
]
}
Amira BedhiafiPosted Jan 14, 2025, 1:58 PM
Your problem can be with the way the URL is set in the
dataobject, theAction.Submitbutton does not directly handle HTTP redirects; instead, it can send data to a handler (like a bot, a service, or a webhook) to process.Your
Action.Submitcan pass the email and other data to the bot or handler, and then the bot can call the Lambda function URL.Another thing, if your bot or service receives the data, it can then initiate an HTTP request to call the Lambda function URL with the data.
Adaptive Card JavaScript (Bot/Service)