Sep 19 2022 04:00 AM
Hi All,
I am using sendActivityNotification API to send activity feed notifications to a user.
Sometimes API works fine and multiple times it gives errors related to "
Specified activity with type 'mldt_notify' could not be found in the app manifest'
Cross-checked the manifest file, entry is present under activities. Attaching the section from the file.
Not sure why it is failing, please suggest if I am doing something wrong.
Thanks,
Pratap
Sep 19 2022 05:46 AM
Sep 20 2022 01:28 AM
Sep 20 2022 02:39 AM
@Pratapkarn2186 - Can you please add {actor} in templateText section.
"activities": {
"activityTypes": [
{
"type": "mldt_notify",
"description": "Notification",
"templateText": "{actor} MultiLine Message"
}
]
}
You can refer here:
Send activity feed notifications to users in Microsoft Teams - Microsoft Graph | Microsoft Learn
Sep 20 2022 03:44 AM
Sep 21 2022 05:16 AM - edited Sep 21 2022 05:18 AM
@Pratapkarn2186 - Can you share the request and response for the API you are calling along with headers. You can skip access token information and also share the manifest.
Sep 22 2022 12:51 AM
Sep 24 2022 08:57 AM - edited Sep 24 2022 08:58 AM
Another observation API sometimes works and randomly gives below gives :
Application with AAD App Id 'XXXXXX' is not authorized to generate custom text notifications about '/v1.0/users/XXXXXX/teamwork/Microsoft.Teams.GraphSvc.sendActivityNotification' to the recipient. Ensure that the expected Teams app is installed in the target scope (user, team, or chat).
Sep 26 2022 03:06 AM
Sep 26 2022 12:24 PM - edited Sep 26 2022 09:01 PM
The app is published in personal scope, then I search for the application and just add.
I don't see any option for scope, but it says "works in Teams"
Is something else that needs to be done ??
Sep 26 2022 11:25 PM - edited Sep 26 2022 11:25 PM
@Pratapkarn2186 - Have you try to test your API using Postman tool?
Sep 27 2022 01:00 AM
Sep 27 2022 04:56 AM
Sep 27 2022 09:54 AM
Please find the manifest file.
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.14/MicrosoftTeams.schema.json",
"version": "1.0.1",
"manifestVersion": "1.14",
"id": "xxxxx-xxx-xxx-xxxx-vvvvvvvv",
"packageName": "com.package.name",
"name": {
"short": "Vavmex-500",
"full": ""
},
"developer": {
"name": "xxxx",
"mpnId": "",
"websiteUrl": "https://xxxxx.ai",
"privacyUrl": "https://xxxxx.ai",
"termsOfUseUrl": "https://xxxx.ai/t&c"
},
"description": {
"short": "Messaging App",
"full": "Application is used to send and receive messages"
},
"icons": {
"outline": "outline.png",
"color": "color.png"
},
"accentColor": "#FFFFFF",
"staticTabs": [
{
"entityId": "xxxxx-xxxx-xxxx-xxx-xxxxxxx",
"name": "MultiLine",
"contentUrl": "https://xxxxx.xxxxxx.net ",
"scopes": [
"personal"
]
},
{
"entityId": "about",
"scopes": [
"personal"
]
}
],
"validDomains": [
"xxxxx.xxxxx.net"
],
"webApplicationInfo": {
"id": "xxxxx-393c-xxxx-930b-xxxxxxxxx",
"resource": "api://xxxxxx.xxxxx.net/xxxxx-393c-47c5-xxxx-xxxxx"
},
"isFullScreen": true,
"activities": {
"activityTypes": [
{
"type": "notify",
"description": "Notification",
"templateText": "MultiLine"
}
]
}
}
Sep 27 2022 09:37 PM
Sep 28 2022 07:39 AM
Sep 30 2022 09:53 AM
Oct 01 2022 02:40 AM
Oct 03 2022 01:48 AM