Graph API
62 TopicsMicrosoft Graph - List apps in chat - 404 UnknownError
In Microsoft Graph, I would like to list all Teams apps associated to an onlineMeeting (to its chat actually). According to List apps in chat - Microsoft Graph v1.0 | Microsoft Learn, this is supported with the following request : GET /chats/{chat-id}/installedApps There is a note saying that if the chat is associated with an onlineMeeting instance, then, effectively, the teamsApps installed in the meeting will be listed. That should work. However, I'm getting a 404 with UnknownError as the error.code on my end. The right permission (TeamsAppInstallation.ReadWriteForChat) is granted (Chat.ReadWrite is granted as well). Testing from Graph Explorer from now. Please note that the following is working to get chat messages with the same chat-id : GET /chats/{chat-id}/messages or the following to get chat members : GET /chats/{chat-id}/members I've tried the endpoint POST /chats/{chat-id}/installedApps to add an app to the chat as well but I'm getting the same kind of 404 (documented on Add app to chat - Microsoft Graph v1.0 | Microsoft Learn). Any advice? Thanks61Views0likes3CommentsMS Graph API: Presence outOfOfficeSettings from beta to 1.0
Hi everybody, in the MS Graph REST API beta the 'Presence' resource type has the property "outOfOfficeSettings" since January 8, 2021. See: https://learn.microsoft.com/en-us/graph/api/resources/presence?view=graph-rest-beta https://developer.microsoft.com/en-us/graph/changelog/?search=outOfOfficeSettings When can we expect this property in the MS Graph REST API 1.0? Regards Gerd250Views0likes1CommentSend Message as User/Bot Using Graph API Based on User's Email Existence in Microsoft Teams Channel
I'm working on a project that involves sending messages to a Microsoft Teams channel using the Microsoft Graph API. I have a specific requirement where: If a user's email exists in the teams channel, the message should be sent as a reply from that user. If the user's email doesn't exist in the channel, the message should be sent from a bot or a service account. I'm using user's token for authentication. Is there any way to achieve this conditional sending of messages using the Microsoft Graph API? Here is a rough outline of what I'm trying to accomplish: Check if the email exists in the teams channel. If it does, send the message as the user. If it doesn't, send the message as a bot or service account. Any guidance or examples on how to implement this would be greatly appreciated. Thank you!2.8KViews0likes4CommentsCleaning Out Old Messages from a Team Channel
A question asked about the best way to remove channel messages from Teams. Microsoft 365 retention policies are an option, but you'll have to wait for retention processing to complete. PowerShell helps because you can create a script to remove all messages and replies from a channel. Everything works, but processing is slow, as we discover when we plunge into the details of writing code. https://practical365.com/remove-channel-messages/685Views0likes0CommentsGraph API: create a PSTN call and invite a PSTN participant
Hello everybody, We are using the MS Graph API within a C# project. After successful creating a PSTN call from our bot like described here https://docs.microsoft.com/en-us/graph/api/application-post-calls?view=graph-rest-1.0&tabs=http#example-7-create-peer-to-peer-pstn-call-with-service-hosted-media we run into the next problem: We want to invite another PSTN participant to this existing call like described here: https://docs.microsoft.com/en-us/graph/api/participant-invite?view=graph-rest-1.0&tabs=http#example-4-invite-one-pstn-participant-to-an-existing-group-call. But we receive following event: { "value": [ { "changeType": "Deleted", "resourceUrl": "/communications/calls/981f6100-cb65-42d9-af3c-1390c68cac8b/operations/5fedb136-cff9-446d-a8bc-4166db960e19", "resource": "/app/calls/981f6100-cb65-42d9-af3c-1390c68cac8b/operations/5fedb136-cff9-446d-a8bc-4166db960e19", "resourceData": { "@odata.type": "#microsoft.graph.inviteParticipantsOperation", "participants": [ { "@odata.type": "#microsoft.graph.invitationParticipantInfo", "identity": { "@odata.type": "#microsoft.graph.identitySet", "phone": { "@odata.type": "#microsoft.graph.identity", "id": "+49175********" } } } ], "status": "failed", "resultInfo": { "@odata.type": "#microsoft.graph.resultInfo", "code": 403, "subcode": 9999, "message": "addParticipants failed for participant 4:+49175******. Underlying reason: Call does not contain the metadata required for making this PSTN dial out.. DiagCode: 403#10151" }, "id": "5fedb136-cff9-446d-a8bc-4166db960e19" }, "@odata.type": "#microsoft.graph.commsNotification" } ], "@odata.type": "#microsoft.graph.commsNotifications" } Any idea why we can not invite another PSTN participant to an existing call from the bot to a PSTN number? Thanks. Regards Gerd10KViews2likes39CommentsHow to send dm even if the user has not installed the app in personal scope.
I am trying to build a bot which will have a few message extension to submit data and then I will make a request to my custom backend. I want to save the data and want to send dm to the user. I am planning to expose a route from my botbuilder restify server (built by teams toolkit) to send a dm to the user (from bot's account) because I could not find a way to send a dm without bot framework. The only problem is when I am trying to send a dm I am getting an error saying "Bot is not installed in user's personal scope", which is true because the app is only installed in a team. How can I tackle this problem? Basically I am building a feedback bot for companies so I want to proactively send dm message to all the employees and admins. What are different ways to do this thing. Feel free to ask about any other information if you need, thanks!Solved2.7KViews0likes13CommentsActivity Feed Notifications Fail Due to WebUrl Length Limit
Hello, I'm using the https://learn.microsoft.com/en-us/graph/api/userteamwork-sendactivitynotification?view=graph-rest-1.0&tabs=javascript#request-headers Graph API to send Activity Feed Notifications to Teams users. I'm using a https://learn.microsoft.com/en-us/graph/api/userteamwork-sendactivitynotification?view=graph-rest-1.0&tabs=javascript#example-2-notify-a-user-about-an-event-using-custom-topic and https://learn.microsoft.com/en-us/graph/teams-send-activityfeednotifications?tabs=javascript#example-8-send-a-notification-to-a-user-using-the-systemdefault-activity-type activity type. The https://learn.microsoft.com/en-us/graph/api/resources/teamworkactivitytopic?view=graph-rest-1.0#properties is a deep link to my Teams Personal Tab app. I also include a payload in the deep link, which becomes available in the tab context. I have noticed that the notification fails if the webUrl length exceeds 1024, due to some larger payloads. error: {"code":"BadRequest","message":"UnknownError"} I couldn't find any documented length limit. I have followed these guides - https://learn.microsoft.com/en-us/graph/teams-send-activityfeednotifications?tabs=javascript https://learn.microsoft.com/en-us/graph/teams-activity-feed-notifications-best-practices Is there a way around this limit, or some other way to include larger payload data when sending the notification?Solved698Views0likes3CommentsAttempting to install the Teams app into a meeting using the Graph API returns a 404:Not Found value
Hi, I'm working on a Java back end application. Its purpose is to: 1. Automatically create an online meeting when certain conditions are met. 2. After creating an online meeting, install a specific Bot app published to the organization in the online meeting chat window. Creating an online meeting was successful with setting the appropriate API permissions for the app. The problem is number 2. Authorization of the app was granted through the Graph API document, and the Bot app to be installed was also published normally by the organization. It was also confirmed that the app was retrieved through the API that retrieves the app list. However, when I try to install using the Graph api, 404:Not Found is returned. What's wrong? For reference, my organization's settings are as follows: 1. Permission to use API of Java back end app: - OnlineMeetings.ReadWrite.All - AppCatalog.ReadWrite.All - Application.ReadWrite.All - OnlineMeetings.ReadWrite.All - TeamsAppInstallation.ReadWriteForChat.All 2. Bot app - Published to organization (permissions and other settings are all allowed) 3. Teams apps Permission policies -Custom apps: Allow all apps The following is the return value when a 404 error occurs. mplementation 'com.microsoft.graph:microsoft-graph:5.+' implementation 'com.azure:azure-identity:1.+' {"email address removed for privacy reasons":"https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/2b0140e9-de04-4097-976d-3b646fc8c082%22%7D 404 : Not Found client-request-id : 2402818b-c253-4e02-840b-7968928cec67 Content-Type : application/json Date : Thu, 17 Aug 2023 08:40:08 GMT request-id : 9d88ee5a-6cc4-46bb-b99d-270893abdaca Strict-Transport-Security : max-age=31536000 Transfer-Encoding : chunked Vary : Accept-Encoding { "error": { "code": "NotFound", "message": "NotFound", "innerError": { "message": "", "code": "AppDefinitionDoesntExist", "innerError": {}, "date": "2023-08-17T08:40:09", "request-id": "9d88ee5a-6cc4-46bb-b99d-270893abdaca", "client-request-id": "2402818b-c253-4e02-840b-7968928cec67" } } } Thanks.1.8KViews0likes3CommentsHow to add external users as presenter to online meeting?
I have invited an external user to my AAD and that user accepted the invitation. Now I need to create a Teams meeting using Graph API (https://learn.microsoft.com/en-us/graph/api/application-post-onlinemeetings?view=graph-rest-1.0&tabs=http) and add this user as a presenter to it. Is there any way? Thanks in Advance!2KViews0likes3Comments"You'll need a new app to open this about link"
I have a custom app running inside of Microsoft Teams. Everything works as expected when running it inside the Teams web application. Running it inside the Teams desktop application breaks part of my custom app. The issue arises when making a request to any web API. That could be the Microsoft Graph API or a custom one I've build for the custom, client application. Instead of getting data back when making the request, I get a popup stating "You'll need a new app to open this about link". Look for an app in the Microsoft Store. Yes/No. I've tried all kinds of different things. Different providers, SSO vs Azure Auth. Any help would be highly appreciated. Regards, Tolga36KViews0likes5Comments