question

PoojaBabar-5075 avatar image
0 Votes"
PoojaBabar-5075 asked PrithviKamble-MSFT-9239 commented

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?

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-authenticatoroffice-teams-app-devmicrosoft-graph-teamworkmicrosoft-graph-notifications
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @PoojaBabar-5075,

Please kindly understand under Teams tag, we mainly focus on general issues about Teams desktop client. Considering that your issue may be more related to API development, I would remove teams tag from your thread and add teams-app-dev tag. Thanks for your understanding and hope your issue would be resolved soon.

1 Vote 1 ·

Hello,
We are looking into this. We will get back to you soon.
Thanks

0 Votes 0 ·

Hi @PoojaBabar-5075 ,
Can you confirm if activity type is included in activities section of your app's manifest from which you are trying to send the notifications. You can refer below link to get more details on manifest changes.
https://docs.microsoft.com/en-us/graph/teams-send-activityfeednotifications

Also can you confirm if you are uploading the app from app studio or admin center ?


Thanks

0 Votes 0 ·

Hi @PoojaBabar-5075 ,
Can you confirm if your issue is resolved or are you still facing any issue for sending notifications ?

0 Votes 0 ·

0 Answers