We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to update one of the extensionAttribute values within the additionalData of a device, but getting the following error:
java.lang.IllegalStateException: Dangling name: extensionAttributes
I'm following the example 2 from here - https://learn.microsoft.com/en-us/graph/api/device-update?view=graph-rest-1.0&tabs=java - although the example isn't fully complete for updating the extensionAttributes. There seems to be a model within the SDK to use for OnPremiseExtensionAttributes but not for extensionAttributes.
If I get additonalData using device.getAdditionalData() it contains the the list of the 15 extensionAttributes that can be used.
Expect the extensionAttribute to update successfully, which works if updating via HTTP for example.
Device newDevice = new Device(); Map<String,Object> additionalData = new HashMap<>(); Map<String,String> attribute = new HashMap<>(); attribute.put("extensionAttribute1", "123456"); additionalData.put("extensionAttributes", attribute); newDevice.setAdditionalData(additionalData); try { client.devices().byDeviceId(deviceId).patch(newDevice); } catch(Exception e) { //handle exception }
6.16.0
No response
</details> ### Configuration _No response_ ### Other information _No response_
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
I am trying to update one of the extensionAttribute values within the additionalData of a device, but getting the following error:
java.lang.IllegalStateException: Dangling name: extensionAttributes
I'm following the example 2 from here - https://learn.microsoft.com/en-us/graph/api/device-update?view=graph-rest-1.0&tabs=java - although the example isn't fully complete for updating the extensionAttributes. There seems to be a model within the SDK to use for OnPremiseExtensionAttributes but not for extensionAttributes.
If I get additonalData using device.getAdditionalData() it contains the the list of the 15 extensionAttributes that can be used.
Expected behavior
Expect the extensionAttribute to update successfully, which works if updating via HTTP for example.
How to reproduce
SDK Version
6.16.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: