Reputation: 313
Below is the continue task module I am returning. The URL works fine when I hit it directly in the browser, but in teams, I always get this:
Task module reponse
handleTeamsTaskModuleFetch() {
return {
task: {
type: "continue",
value: {
title: "response",
url: `${process.env.HostName}/help.html`,
fallbackUrl: `${process.env.HostName}/help.html`,
width: 500,
height: 500
}
}
};
}
Can anyone see what I am doing wrong?
Cheers
Note: This is how I am creating the Adaptive Card
const adaptiveCard = {
$schema: 'http://adaptivecards.io/schemas/adaptive-card.json',
version: '1.0',
type: 'AdaptiveCard',
body: [{
type: 'TextBlock',
text: 'Task Module Invocation from Adaptive Card',
weight: 'bolder',
size: 3
}],
actions: [{
type: 'Action.Submit',
title: "TEST",
data: { msteams: { type: 'task/fetch'}, data: "meTask" }
}]
}
Upvotes: 1
Views: 416
Reputation: 146
The URL's domain must be in the app's validDomains array in your app's manifest.
Upvotes: 6