Questions tagged [microsoft-graph-sdks]

Microsoft Graph SDKs refer to a collection of language-specific SDKs for Microsoft Graph. This tag should generally be used in conjunction with the [microsoft-graph] tag.

The current list of available SDKs for Microsoft Graph can be found at https://developer.microsoft.com/en-us/graph/gallery/?filterBy=SDKs

1156 questions
3
votes
1 answer

Understanding Microsoft graph /getSchedule Api functionality

I am trying to use graph /getSchedule api to check for meeting conflict. However I'm not quite about functionality and usage of request input field "availabilityViewInterval". My basic requirement is to pass a start and end dateTime and see if the…
3
votes
3 answers

"Access denied" When making a folder via Microsoft Graph

When trying to make a folder in SharePoint site I get the following error: { "error": { "code": "accessDenied", "message": "Access denied", "innerError": { "request-id": "61d3b5aa-857e-4ee2-9d0d-51d235ca7c5f", "date":…
Mister Verleg
  • 4,053
  • 5
  • 43
  • 68
3
votes
2 answers

SharePoint API: Can't authenticate 'Sites.FullControl.All' in client_credential flow

I've have an App that would like to access SharePoint API. I've registered it in AD, and gave it the following permissions: But when I ask it to be authenticated with the following scopes - https://graph.microsoft.com/User.Read.All -…
3
votes
1 answer

Getting Teams Calls returns Application not registered in our store

I'm struggling with Microsft Graph. I want to fetch Teams Calls from the graph API to throw them against our ticket software. Sounds easy at first. And I think it is but I don't get why it won't work. Edit: Just a heads up. I ended up using the…
Akaino
  • 1,025
  • 6
  • 23
3
votes
1 answer

Copy a file using Microsoft Graph C# SDK

I'm trying to copy a file from a drive to another using the C# SDK for Microsoft Graph, but I get an error that I'm not sure how to handle. This is my code: public async Task CopyFile(CopyDriveFileCommand c) { var graphClient =…
Martin Johansson
  • 773
  • 1
  • 11
  • 27
3
votes
2 answers

How do I send comment to the planner Task that has been just created. Conversation Thread comes to null for them

I know conversations are on the group level, but https://graph.microsoft.com/v1.0/groups/******-****-4f19-be0e-********/conversations does not give any conversation id of newly created Planner Tasks. I need to send some comments while I create a…
3
votes
2 answers

Using Microsoft.Graph to get current application permissions

My C# program uses the Microsoft.Graph Nuget. And it needs be able to ensure that it has the correct Microsoft Graph application permissions. I know how to add permissions in AD, but I want my program to be able test it has the permissions it…
3
votes
2 answers

How to get Sharepoint ListItem on DriveItem with Microsoft Graph API c# SDK

ListItem of a driveItem is in a document library is always null. How to get custom fields of file? I want to build a function to get the content stream and fields of file. var client = GetAuthenticatedClient(); var driveItems = await…
3
votes
2 answers

Graph - Is there easier/faster way to delete all items within a SharePoint list?

Following code, runs trough the list and removes each item. Is there any "nicer" way to delete all items from a list? (Except of removing it and recreating it?) Something like List.Purge var deleteQueryOptions = new List() { new…
Marek Kyzivát
  • 323
  • 2
  • 16
3
votes
1 answer

Msgraph-sdk-java vs Msgraph-sdk-android for Android?

Has anyone tried Android development using Microsoft Graph SDKs? What is the preferred SDK for Android? There are two SDKs available - one for Java (msgraph-sdk-java) and one separately for Android (msgraph-sdk-android) and its very confusing to…
Samhith G B
  • 85
  • 1
  • 7
3
votes
2 answers

How to pass $value in request to get mime content of mail using graph sdk not api

I am using Graph SDK in C# to read mail messages and I am able to do that. I want Mime Content of my mail message. How do we pass $value in my request using SDK. Sample code: mails = await graphserviceclient .Me .Messages .Request() …
3
votes
2 answers

How to serialize and Deserialize IGraphServiceClient client object?

We are working on a project which uses Microsoft Graph SDK to implement Excel/OneDrive related functionalities. We have a use-case where we need to serialize and deserialize the IGraphServiceClient client reference/object. We tried to deserialize…
Rais Ali
  • 51
  • 6
3
votes
0 answers

How to manage AutoRefresh of AccessToken for Microsoft Graph SDK (Using Google oauth2 library For Managing Authentication)

I have the AccessToken, Refresh Token Available and stored in the database against each user authenticated and authorized. I am using GraphSDK for Java for calling the APIs. To Instantiate a GraphServiceClient object i have to pass…
3
votes
1 answer

Getting the drive's items from Microsoft Graph API: The request is malformed or incorrect

I am trying to get a drive's items via the Microsoft Graph Api (SDK) and tried the following options: _graphServiceClient.Drives[driveInfo.Id].Items.Request().GetAsync():, this unfortunately results in an error with message error with message "The…
Yves Schelpe
  • 3,343
  • 4
  • 36
  • 69
3
votes
1 answer

how to find OneNote Notebook object from driveItem with MS Graph?

When a OneNote Notebook is created in OneDrive, Microsoft shows a DriveItem with a package facet and type of oneNote. This is exactly per documentation. The driveItem appears to be a link/reference to the actual Notebook - which is stored in a…