msgraph-sdk-java
msgraph-sdk-java copied to clipboard
Microsoft Graph SDK for Java
Hi, I am trying to upload new file to SharePoint using java as follows: graphServiceClient.drives().byDriveId("DRIVE_ID").items().byDriveItemId("ITEM_ID").content().put(fileInputStream); In case I don't add the Content-Length header to the put method it's failed with...
### Expected behavior Initializing `GraphServiceClient` with no scope argument should default to scope `https://graph.microsoft.com/.default` when using `azure-identity` `TokenCredential` and fetch the token ### Actual behavior Attempt to fetch Azure token...
I'm using ` GraphServiceClient` along with `PageIterator` in my code to go over all response pages. ``` UserCollectionResponse userCollectionResponse = graphClient.users().get(); List users = new LinkedList(); PageIterator graphResponsePageIterator = new...
### Expected behavior When calling the [Get range](https://learn.microsoft.com/en-us/graph/api/worksheet-range?view=graph-rest-1.0&tabs=http) method using the Microsoft Graph Java SDK, the `getValues()` method of the `WorkbookRange` object should return the data from the `values` parameter...
### Expected behavior Have at least one configured certificate Perform request Application app= graphClient.applications().byApplicationId(applicationId).get(); as app.getKeyCredentials().get(0).getKey() is null! ### Actual behavior The app.getKeyCredentials().get(0).getKey() should not be null, expected certificate in...
Hi, using graph v6.1.0 we get: com.microsoft.kiota.ApiException: generalException at com.microsoft.kiota.ApiExceptionBuilder.withMessage(ApiExceptionBuilder.java:45) at com.microsoft.graph.core.requests.upload.UploadResponseHandler.handleResponse(UploadResponseHandler.java:61) at com.microsoft.graph.core.requests.upload.UploadSliceRequestBuilder.put(UploadSliceRequestBuilder.java:69) at com.microsoft.graph.core.tasks.LargeFileUploadTask.uploadSlice(LargeFileUploadTask.java:207) at com.microsoft.graph.core.tasks.LargeFileUploadTask.upload(LargeFileUploadTask.java:131) for this code: ```kotlin private fun uploadAttachment(messageId: String, inputStream: InputStream, filename: String):...
This pull request was automatically created by Azure Pipelines. **Important** Check for unexpected deletions or changes in this PR.
The upgrade guide https://github.com/microsoftgraph/msgraph-sdk-java/blob/dev/docs/upgrade-to-v6.md#authentication suggests to use DefaultAllowedHostsValidator, but this class cannot be found in the SDK. As a workaround i used the set from AzureIdentityAccessTokenProvider
### Expected behavior Perform request graphClient.applications().byApplicationId("") .patch(app) if try to add a new certificate and there are old configured certificates. If there are not old configured certificates the call is...
Hi I found the the method byDriveItemId ask for different path every time: To get drive item for item in root graphServiceClient.drives().byDriveId("driveId").items().byDriveItemId("root:/fileName").get() To get drive item children in root :...