Latest Discussions
get "First Published Date" through graph api lists
I have a number of SharePoint sites that publish news articles. One of the Key fields is "First Published Date". Which shows if the article is published or still in draft. I'm using GET https://graph.microsoft.com/v1.0/sites/{siteId}/pages$filter=promotionKind eq 'newsPost' which returns all the news pages in a site. there is an additional field called first published date I can see in the library. And I can see it using GET /sites/{site-id}/lists/{list-id}/columns { "columnGroup": "_Hidden", "description": "", "displayName": "First Published Date", "enforceUniqueValues": false, "hidden": false, "id": "c84f8697-331e-457d-884a-c4fb8f30ea74", "indexed": true, "name": "FirstPublishedDate", "readOnly": true, "required": false, "dateTime": { "displayAs": "default", "format": "dateTime" } }, But this column isn't returned using the sites/pages get request. I have also tried to force it to show by using $select=FirstPublishedDate but I get the error { "error": { "code": "BadRequest", "message": "Parsing OData Select and Expand failed: Could not find a property named 'FirstPublishedDate' on type 'microsoft.graph.baseSitePage'.", "innerError": { "date": "2024-11-07T13:30:16", "request-id": "1ba721f9-7ae0-43ab-8fe1-89a598245c02", "client-request-id": "a2fd61e8-c652-6b22-ea3f-037655568ddf" } } } how can I get the value of this field for a page?NickMumbyNov 07, 2024Copper Contributor5Views0likes0CommentsDo 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 Contributor28Views0likes1CommentCorrelation 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!32Views0likes0CommentsProperty 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 Contributor98Views0likes0CommentsGraph 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, 2024Microsoft100Views0likes0Comments