Forum Widgets
Latest Discussions
Do you know any example to upload file to a specific folder (identified by folderId)? with Graph v5.
Hello. I'm just starting out with SharePoint and Microsoft 365. I need to upload a file to a specific folder in a SharePoint library using Graph v5.61. I've managed to upload it to the root of the library: publicasyncTask<string>UploadFile2Root(stringlistId,stringfileName,byte[]fileBytes) { stringfileId=""; Drive?drive=await_graphClient.Sites[SITE_ID].Lists[listId].Drive.GetAsync(); GraphSDK.Drives.Item.Root.RootRequestBuildertargetFolder=_graphClient.Drives[drive?.Id].Root; using(MemoryStreamstream=newMemoryStream(fileBytes)) { awaittargetFolder .ItemWithPath(fileName) .Content .PutAsync(stream); DriveItem?uploadedItem=awaittargetFolder.ItemWithPath(fileName).GetAsync(); fileId=uploadedItem?.Id??""; } returnfileId; } The problem is when I try to use a specific folder (folderId has the correct value): var targetFolder=_graphClient.Drives[drive?.Id].Items[folderId]; I always get the error: "Microsoft.Graph.Models.ODataErrors.ODataError: 'The resource could not be found.'" Could you tell me how to solve the problem or an example that does this task? I have also tried: https://learn.microsoft.com/en-us/answers/questions/1517434/how-to-upload-a-file-to-a-sharepoint-driveitem-fol and other examples, but without success. I'm also trying to retrieve something similar to an ItemRequestBuilder. Thank you very much in advance.mariscos25Nov 06, 2024Copper Contributor27Views0likes1CommentCorrelation between Microsoft Graph Events and bookingBusiness Appointments
Hi everyone, I'm struggling with getting complete attendee information from calendar events. I can successfully get event details from the /events endpoint, but it lacks full attendee information and other details compared to the bookingBusiness/account-id/appointments endpoint. The problem is, I can't find a way to correlate and event and its various ID's and a booking appointment ID. Is there a recommended way to get full attendee details while working with calendar events? Any help would be appreciated!31Views0likes0CommentsProperty name (guid / namespace) scope and rules for custom single value extended properties
Hello, I need to add a custom extended property on events and intend to use a "named" "single-value extended properties" as explained in extended properties overview , with a property identifiers in the 0x8000-0xfffe range as in the example: "{type} {guid} Name {name}" "String {8ECCC264-6880-4EBE-992F-8888D2EEAA1D} Name TestProperty" Identifies a property by the namespace (the GUID) it belongs to, and a string name. The MAPI Property Identifier Overview states that : Beyond 0x8000 is the range for what is known as named properties, or properties that include a 128-bit globally unique identifier (GUID) and either a Unicode character string or 32-bit numeric value. Clients can use named properties to customize their property set As a new developper in Office365 environment, the GUID generation and its scope in office365 are not quite clear to me : Does it means that we are free to use any 128-bit GUID/Namespace in the 0x8000 range to set a custom named property ? What is the scope of the GUID/namespace in that context ? Is it limited to my graph client application or shared with others ? Even if the conflict risk looks weak, is there a method to check/generate my GUID ? or to get some GUIDs already used somewhere that could collide with the one i am using ? Regards,fe_belliardOct 30, 2024Copper Contributor95Views0likes0CommentsGraph Security Legal hold Communication endpoint
Why is there no legal hold communication endpoint for the Microsoft Graph 1.0 Security API? We need to be able to list, create and update legal hold communications for various eDiscovery cases with Graph.tgraham-legalopsOct 30, 2024Brass Contributor43Views0likes0CommentsHow to move item specifying @microsoft.graph.conflictBehavior
Hello, I need to move items but need to set the microsoft.graph.conflictBehavior to replace. What I'm currently trying to do in python but doesn't set the microsoft.graph.conflictBehavior strategy: import requests import json requests.patch( 'https://graph.microsoft.com/v1.0/drives/MYDRIVEID/items/MYITEMID?@microsoft.graph.conflictBehavior=replace', data=json.dumps({'parentReference': {'driveId': 'MYDRIVEID', 'path': 'MYNEWPARENTLOCATION'}}), headers={'Authorization': 'Bearer MYTOKEN', 'Content-Type': 'application/json', 'Prefer': 'IdType="ImmutableId",bypass-shared-lock'} ) This gives me error 409 conflict, but I want the replace to force the move of folder to its new parent locaiton. Any idea ? ThanksericmugnierOct 30, 2024Copper Contributor38Views0likes0CommentsDrives search endpoint suddenly stopped working
We are facing an issue where the following endpoint has suddenly stopped working (as of 2024-10-23) for only one of our accounts: https://graph.microsoft.com/v1.0/me/drive/root/search(q='.xls') I am able to see the Excel workbooks I'm searching for /drive/root/children endpoint, but the /search is returning no results in one of the two accounts. I know indexing can be an issue that causes a delay for results to show up from /search, but many of the files on the affected account have been there for 6 months. Comparing the working account to the failing one, I don't see any significant difference in the requests. For both accounts, the OAuth scopes requested are the same (from the decoded Bearer token): "scp": "AllSites.Read Files.Read Files.Read.All Files.Read.Selected Files.ReadWrite Files.ReadWrite.All Files.ReadWrite.AppFolder Files.ReadWrite.Selected Sites.Read.All Sites.ReadWrite.All profile openid email" Both accounts are Business OneDrive accounts. I can even access the workbooks directly on the failing account from the following endpoint: https://graph.microsoft.com/v1.0/me/drive/items/017ZHZ4ENXPMNDLB52LFF3ZX55FHHUGZ3F/workbook/worksheets So it seems that /search is simply not working. Our tool is reliant on the /search endpoint, so it would not be a quick fix to change this and it is affecting some of our customers as well. Is this a known issue or does anyone have another clue on what to check? I'm wondering if search indexing is broken on this account (and our customer's account), but I don't know of any way to force it to re-index the files.SolvedJohnG_CDataOct 28, 2024Copper Contributor169Views0likes1CommentReorder 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? Thanksjohnjohn-PeterOct 27, 2024Iron Contributor54Views0likes0CommentsDifficulty with Auto-Answering VOIP Calls via Microsoft Graph API
Description: I'm working on a PowerShell script to initiate and auto-answer VOIP calls using the Microsoft Graph API. I have successfully set up my Azure App Registration, including a callback URI. However, I'm encountering issues when trying to auto-answer calls Details: Call Initiation: The script successfully initiates a call using the New-MgCommunicationCall endpoint. Call Status: The call transitions from "establishing" to "established" status as expected. Error on Auto-Answer: Upon attempting to auto-answer the call with the Invoke-RestMethod to the answer endpoint, I receive a 404 Not Found error. The output indicates that the call ID is valid, but it seems the call resource is not found at the time of answering. Current Script Setup: I'm using a callback URI (https://kyncomdigiwasusdev.onmicrosoft.com/callback) configured for handling call events. I have ensured the necessary permissions are granted in Azure for the app. I have tried various delays (currently set to 5 seconds) between establishing the call and answering it, but I still receive the 404 error. Questions: Are there any known issues with the auto-answer feature in the Microsoft Graph API for VOIP calls? What additional steps should I take to troubleshoot this error?allabashashaikOct 24, 2024Copper Contributor137Views0likes2CommentsGraph API support for converting pptx into mp4
Hi Team, MyteamiscurrentlyexploringtheuseofGraphAPIforconvertingPowerPointfiles(PPTX)intoMP4format.CouldyouconfirmifGraphAPIprovidessupportforthisfunctionality? Basedonthedocumentationprovided,itseems Graph API only supports conversion to pdf or html at this moment.Forreference,pleasereview: Convert to other formats - Microsoft Graph v1.0 | Microsoft Learn. Thanks! CynthiaCynthia_ZhengOct 22, 2024Microsoft100Views0likes0CommentsConsultative transfer using .net sdk and the current call status
Hi. I am using GraphQL .net sdk to accept incoming call. Lets say the incoming call is A and then I do make another call to ask if an agent can join (call it B) to call A. This works fine and I can see the participant in call A are now in a call with participant in B. var transferTarget1 = new InvitationParticipantInfo { ReplacesCallId = call_B.Id.ToString(), Identity = agentIdinCallB }; await (_callA).TransferAsync(transferTarget1); How ever, I see that _callA is Terminated now I tried the other way : var transferTarget1 = new InvitationParticipantInfo { ReplacesCallId = call_A.Id.ToString(), Identity = agentIdinCallB }; await (_callB).TransferAsync(transferTarget1); Same happend and incoming call, A is terminated. I need to keep track of the incoming call for Observability proposes and later add participants to it, but now it does not let me do that. Does calling TransferAsync makes new a call object ?bfanyOct 17, 2024Copper Contributor65Views0likes0Comments
Resources
Tags
- API201 Topics
- Office Graph146 Topics
- Developer102 Topics
- Office 36590 Topics
- Graph API25 Topics
- App20 Topics
- Microsoft Graph14 Topics
- teams11 Topics
- Microsoft Graph Api10 Topics
- "Graph API"9 Topics