User Profile
Pratapkarn2186
Copper Contributor
Joined Aug 24, 2022
User Widgets
Recent Discussions
Re: Notifications with sendActivityNotification API
Sayali-MSFT 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" } ] } }3.1KViews0likes1CommentRe: Notifications with sendActivityNotification API
Sayali-MSFT: I tried with the postman and got an error. API Request: https://graph.microsoft.com/v1.0/users/xxxxx/teamwork/sendActivityNotification Response: { "error": { "code": "Forbidden", "message": "Application with AAD App Id 'xxxxxxx' is not authorized to generate custom text notifications about '/v1.0/users/xxxxx/teamwork/Microsoft.Teams.GraphSvc.sendActivityNotification' to the recipient. Ensure that the expected Teams app is installed in the target scope (user, team, or chat).", "innerError": { "date": "2022-09-27T07:59:00", "request-id": "c52396c3-54cf-4050-b861-6ee5b102519c", "client-request-id": "c52396c3-54cf-4050-b861-6ee5b102519c" } } }3.2KViews0likes7CommentsRe: installed app not listed in installedApps API
Prasad_Das-MSFT : API : https://graph.microsoft.com/v1.0/users/XXXXXXX/teamwork/installedApps?$expand=teamsAppDefinition yes the app is installed on the personal scope. I don't see this particular app, in response I do see "@odata.count": 66 and other applications1.3KViews0likes3Commentsinstalled app not listed in installedApps API
Hi All, I have uploaded a custom app and installed it on a particular user. But when tried executing https://graph.microsoft.com/v1.0/users/xxxxxx/teamwork/installedApps?$expand=teamsAppDefinition API is not listing the application. Do I need to do something else also? Thanks, Pratap1.5KViews0likes7CommentsRe: Notifications with sendActivityNotification API
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).3.3KViews0likes11CommentsRe: Notifications with sendActivityNotification API
Hi sayali-MST, please find the details. Request : https://graph.microsoft.com/v1.0/users/email address removed for privacy reasons/teamwork/sendActivityNotification --header 'Authorization: XXXXXXX' --header 'Content-Type: application/json' --header 'Accept: application/json' Data : {"topic":{"source":"text","value":"New message","WebUrl":"https://teams.microsoft.com/l/entity/XXXX/YYY"},"activityType":"mldt_notify","previewText":{"content":"Check New Messaging"}}3.4KViews0likes12CommentsRe: Notifications with sendActivityNotification API
hi Sayali-MSFT, i tried as suggested by adding actor but the result is the same. "message"=>"Specified activity with type 'mldt_notify' could not be found in the app manifest.", "innerError"=>{"date"=>"2022-09-20T10:42:10", "request-id"=>"010d297d-1b37-4c24-9735-895ed1ba0ccf", "client-request-id"=>"010d297d-1b37-4c24-9735-895ed1ba0ccf" Thanks, Pratap3.4KViews0likes14CommentsNotifications 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, Pratap3.9KViews0likes18CommentsBack button not working as expected in Mobile (Teams)
Hi , I have the MS team's custom tab application for the team. It is an angular application, it has some internal navigations like navigating from one view to another. When I am sending a notification using the sendActivityNotification API call, it reaches the mobile app. With the click of the notification, the application loads and it works fine. But after navigation, if I tap on the back button of the device or (<-) button from the MS team's app header then it behaves like loading the history instead of navigating back to the activity(Feed). Thanks, Pratap2.1KViews0likes5CommentsRe: Custom app not working on mobile
hi Nivedipa-MSFT, Attaching manifest file : { "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.14/MicrosoftTeams.schema.json", "version": "1.0.4", "manifestVersion": "1.14", "id": “XXXXX”X, "packageName": "com.package.name", "name": { "short": "Raptors", "full": "Raptors Messaging" }, "developer": { "name": “XXX”, "mpnId": "", "websiteUrl": "https://XXXXX”, "privacyUrl": "https://XXXX/privacy", "termsOfUseUrl": "https://XXX/t&c” }, "description": { "short": "Messaging app", "full": "Send and receive messages " }, "icons": { "outline": "outline.png", "color": "color.png" }, "accentColor": "#FFFFFF", "staticTabs": [ { "entityId": “XXXXX”, "name": "MultiLine", "contentUrl": "https://XXXXXXX/web?embedded=messaging", "scopes": [ "personal" ] }, { "entityId": "about", "scopes": [ "personal" ] } ], "validDomains": [ “XXXXX” ], "webApplicationInfo": { "id": “XXXXXXXXXXXXX”, "resource": "api://XXXXXXX/XXXXXX-2e98-4220-81af-XXXXXXXX” }, "isFullScreen": true, "activities": { "activityTypes": [ { "type": "mldt_notify", "description": "Notification", "templateText": "MLDT Notification" }, { "type": "mldt_notify", "description": "Notification", "templateText": "MultiLine Messaging Notification" } ] }, "authorization": { "permissions": { "orgWide": [], "resourceSpecific": [] } }, "supportedChannelTypes": [ "sharedChannels", "privateChannels" ] }1.9KViews0likes2Comments
Recent Blog Articles
No content to show