When I have try to send notification to Bot Framework its showing an error like "Specified activity with type 'taskCreated' could not be found in the app manifest" then how to resolved it?

Pooja Babar 1 Reputation point
2021-09-08T11:25:59.463+00:00

URL = POST: https://graph.microsoft.com/v1.0/teams/{{TeamId}}/sendActivityNotification

Body:

{
"topic": {
"source": "entityUrl",
"value": "https://graph.microsoft.com/v1.0/teams/67590875d-b7ef9619133dsdfgs"
},
"activityType":"message",
"previewText": {
"content": "New Task Created"
},
"recipient": {
"@odata.type": "microsoft.graph.aadUserNotificationRecipient",
"userId": "4354654e3e02c746575716"
},
"templateParameters": [
{
"name": "taskId",
"value": "12322456"
}
]
}

Output:

{
"error": {
"code": "BadRequest",
"message": "Specified activity with type 'message' could not be found in the app manifest.",
"innerError": {
"date": "2021-09-08T10:15:35",
"request-id": "15970f668121",
"client-request-id": "1045970f668121"
}
}
}

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
3,261 questions
Microsoft Graph Teamwork API
Microsoft Graph Notifications API
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,075 questions
{count} votes