Adding and fetching custom metadata for onedrive

Mangesh Shinde 0 Reputation points
2025-04-23T10:40:10.46+00:00

I want to add custom field while uploading items in onedrive and then need to fetch that custom field and its value. Using ms graph api sdk.

searching let me understand that extension api can be used but not find any while using java sdk

OpenTypeExtension extention = new OpenTypeExtension();

extention.setExtensionName("com.tdg.customMetadata");

extention.setAdditionalData(metadata);

graphClient.drives().byDriveId(driveId).items().byDriveItemId(itemId).ex

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,541 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.