developer
124 TopicsError on subsciption get/post/patch/delete, [Status Code: Unauthorized; Reason: p#S256 doesn't match
I first encountered this issue in a project using the .NET SDK, but has since replicated it with the graph explorer at https://developer.microsoft.com/en-us/graph/graph-explorer to verify that the issue is with the api. After creating a subscription, I can see it appear on a get request to https://graph.microsoft.com/v1.0/subscriptions, no problem. When I try any query with the subscription ID in the URL though, I always get the same error: { "error": { "code": "ExtensionError", "message": "Operation: Read; Exception: [Status Code: Unauthorized; Reason: p#S256 doesn't match.]", "innerError": { "date": "2023-12-14T04:10:00", "request-id": "ff9d5295-2dd5-40ca-91c7-4ec0cf871c8c", "client-request-id": "2fb3723b-1858-5d41-e4bc-47589df481a0" } } } I've attempted Get, Patch, Post and Delete requests to both https://graph.microsoft.com/v1.0/subscriptions/<subscriptionId> and https://graph.microsoft.com/beta/subscriptions/<subscriptionId> , all requests giving the same error.2.3KViews3likes10CommentsQuery the Office Graph using GQL and SharePoint Online Search REST APIs
The Office Graph computes insights across Office 365 and makes these insights available through the Microsoft Graph, the single endpoint that you can use to access a number of Microsoft's cloud technologies. Graph Query Language (GQL) is a preliminary query language designed to query the Office Graph via the SharePoint Online Search REST API. By using GQL, you can query the Office Graph to get items for an actor that satisfies a particular filter. Get started!2.4KViews3likes1CommentSet work location via API (Graph?)
Hi Graph Team! We would like to set the work location ("Office", "Remote") via Graph API endpoint. We want to synchronize the work location in Teams / O365 with information from our internal tool. This workaround here is not applicable to our use case: https://techcommunity.microsoft.com/t5/teams-developer/set-work-location-via-api-graph/m-p/3874804#M8092 There seems to be a high interest in this capability. Can you add this function to Microsoft Graph? Thanks! Jens3.8KViews2likes3CommentsMicrosoft Graph Explorer Update – Revamped and Expanded
In its previous version, Graph explorer had a limited set of capabilities that didn’t allow developers to fully discover and leverage all that Microsoft Graph has to offer. Today we are happy to announce lots of cool functionality that we enabled during our internship! Now you can: - Learn about what the Microsoft Graph has to offer with a cool autocomplete feature built in the request builder. - Access and use the Graph explorer, regardless of disability. - Use the Graph Explorer even if you do not have an Office 365 account, by accessing sample data. - Use your personal Microsoft Account to log-in to the Graph Explorer; it previously only supported work and school accounts. - Access the Graph explorer with a work or school account, even if you are not an organizational administrator. - Review and return to past queries. - Customize your request headers to allow in-depth testing. Learn more about the lastest updates: https://dev.office.com/blogs/microsoft-graph-explorer-update4KViews2likes0CommentsQuery Regarding Duplicate Message IDs from Microsoft Graph API
Hello Microsoft Support Team, I am currently using the Microsoft Graph API to fetch email messages from the inbox of a my support email in my PHP application. However, I am encountering an issue where the API returns duplicate message IDs for emails. This is causing problems as emails with the same id are being processed multiple times, which results in duplicate ticket creation in my CRM system. To avoid this, I am currently checking and skipping duplicate IDs manually in my application. However, I would like to understand the root cause of these duplicates and whether there is an official recommendation or best practice to handle such cases effectively. Here are some additional details: API Endpoint: GET graph.microsoft.com/beta/users/$userEmailEncoded/mailFolders/Inbox/messages?\$top=20&\$orderby=receivedDateTime%20desc Issue: Duplicate message IDs (id) returned for the same email. Current Handling: I am skipping already processed emails using a tracking for message IDs to prevent duplicate ticket creation. Additionally, I have a few more queries regarding the use of internetMessageId and fetching attachments: Problem with internetMessageId: When I use internetMessageId, the internetMessageId of a replied message returns null. How can I use this ID effectively to manage or track message threads and replies? Attachments with internetMessageId: Is it possible to fetch attachments for a message using the internetMessageId? I am trying to retrieve attachments for a specific email using this ID, but I am not sure how to do this efficiently. Could you please advise on the following: Is there a recommended way to handle or filter out duplicate emails when fetching email data from the Graph API? Is there any mechanism in the API to ensure unique messages, especially when calling this endpoint frequently? How can I properly use internetMessageId for tracking message threads and replies, and why is it returning null for replied messages? Can I retrieve attachments using internetMessageId or is there another method for doing so? I would greatly appreciate any guidance or suggestions you can provide. Thank you for your time and assistance. Best regards, Krishna Adroja email address removed for privacy reasons126Views1like2CommentsReorder Teams Channel tabs, move a 3rd tab to be the last tab?
I have an automate power automate flow which Create a Teams site, channels & tabs. now inside the General channel, we add the following custom tabs (Active DashBoard, Incident -12: Tasks and Template & training), as follow:- but i will get those 3 built-in tabs; Posts, Files and Notes.. now how i can move the Notes tab to be last tab ? using Graph API? Thanks99Views1like0CommentsMialbox Forwarding in Graph API
Is there away to retrieve the ForwardingSmtpAddress and DeliverToMailboxAndForward settings for a mailbox via the Graph API? I'm building an application that aggregates information about a user from multiple sources, one of them being AzureAD/M365. We want to show a support engineer the forwarding information that is set on a user's mailbox, but it seems the only way to get this is via PowerShell, which means settings up a runspace and powershell remoting, which I'd rather not do, sense I'm using the graph API already for license information.2.8KViews1like2CommentsIs there any REST API for creating new Excel (.xlsx) file in OneDrive cloud
I'm trying to create a new excel file in OneDrive with the below properties of the REST API call. URL: https://graph.microsoft.com//v1.0/me/drive/root/children Body: { "name": "MyFile.xlsx", "file": {}, "@microsoft.graph.conflictBehavior": "rename" } Header: Content-Type:application/json With the help of the above properties, I'm able to create the file in OneDrive. But it is created without size & If I try to open the workbook it says Couldn't Open the Workbook Error The workbook cannot be opened. Basically, whenever I create a new excel file from UI it has a default size of 7.81KB (Could be used for metadata of file). I have taken reference from https://docs.microsoft.com/en-us/graph/api/driveitem-post-children?view=graph-rest-1.0&tabs=http Is there anyone who knows how to resolve this issue?2KViews1like3CommentsMicrosoft Search with office365 and internal enterprise application
Hi, Currently, I am working in an organization that is using office365 and they want to create a standalone application 'enterprise search' for the company to be as the main landing page whenever any user opens the browser. The requirement is to integrate the below sources into one single solution and display the result. - Emails (office365) - People (office365) - Document (office 365's one drive) - Content Server (Document store in OpenText content server) - Correspondence (internal system whereof exchanging memo where file store on SharePoint server) I know I can use GraphAPI to pull email, people and one drive information but how I can use my other non-office solutions to index and ready by graph api or any other services which Microsoft have (not in preview or beta?1.2KViews1like1Comment