Forum Discussion
Pratapkarn2186
Sep 19, 2022Copper Contributor
Notifications with sendActivityNotification API
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.
"activities": {
"activityTypes": [
{
"type": "mldt_notify",
"description": "Notification",
"templateText": "MultiLine Message"
}
]
}
}
Not sure why it is failing, please suggest if I am doing something wrong.
Thanks,
Pratap
18 Replies
Sort By
- Sayali-MSFT
Microsoft
Pratapkarn2186-Thanks for reporting your issue.
We will investigation this issue and get back to you.- Pratapkarn2186Copper ContributorSayali-MSFT: Is there anything else that can be done to figure out what is going wrong ??
We have already build a feature based on this approach, now we see API response is not consistent.- Sayali-MSFT
Microsoft
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