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 Teams | Development
Microsoft Security | Microsoft Authenticator
Microsoft Security | Microsoft Graph
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.