how to add activityType in app manifest

Radhika Mendhe 1 Reputation point
2021-09-08T11:11:59.233+00:00

Post: https://graph.microsoft.com/v1.0/teams/{{TeamId}}/sendActivityNotification
{
"topic": {
"source": "entityUrl",
"value": "https://graph.microsoft.com/v1.0/teams/{teamid}"

},
"activityType":"message",
"previewText": {
    "content": "New Task Created"
},
"recipient": {
    "@odata.type": "microsoft.graph.aadUserNotificationRecipient",
    "userId": "232454678"
},
"templateParameters": [
    {
        "name": "taskId",
        "value": "12322"
    }
]

}

when i try to send notification to msteam bot using graph api(postman) it gave me below type of error ,so how to resolve this problem.

"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": "1042e7c5-38b4-4c38-8e32-15970f668121",
"client-request-id": "1042e7c5-38b4-4c38-8e32-15970f668121"
}
}
}

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,575 questions
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,843 questions
{count} votes

1 answer

Sort by: Most helpful
  1. 2022-06-16T13:44:21.953+00:00

    Hi, any update on this forum? I am also facing the same issue. once manifiest file is uploaded APP studio remove the Activities section, due to that I cannot testing the SendActivityNotification

    0 comments No comments