Comments (7)
Peculiar, I'll check it out...
from odata-client.
It's there:
client.users("123").get().getMailboxSettings();
from odata-client.
BTW latest version is 0.1.41
from odata-client.
Ah, I think I see a bug. If I do this:
GraphService client = MsGraph.explorer().build();
System.out.println(client.me().get().getMailboxSettings());
I get
Optional.empty
but if I do:
GraphService client = MsGraph.explorer().build();
System.out.println(client.me().select("mailboxSettings").get().getMailboxSettings());
I get
Optional[MailboxSettings[archiveFolder=AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OAAuAAAAAAAiQ8W967B7TKBjgx9rVEURAQAiIsqMbYjsT5e-T7KzowPTAAAAAAFNAAA=, automaticRepliesSetting=AutomaticRepliesSetting[externalAudience=ALL, externalReplyMessage=, internalReplyMessage=, scheduledEndDateTime=DateTimeTimeZone[dateTime=2020-10-07T07:00:00.0000000, timeZone=UTC],unmappedFields={},odataType=null, scheduledStartDateTime=DateTimeTimeZone[dateTime=2020-10-06T07:00:00.0000000, timeZone=UTC],unmappedFields={},odataType=null, status=DISABLED],unmappedFields={},odataType=null, dateFormat=M/d/yyyy, delegateMeetingMessageDeliveryOptions=SEND_TO_DELEGATE_ONLY, language=LocaleInfo[displayName=English (United States), locale=en-US],unmappedFields={},odataType=null, timeFormat=h:mm tt, timeZone=Pacific Standard Time, workingHours=WorkingHours[daysOfWeek=[MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY], endTime=17:00, startTime=08:00, timeZone=TimeZoneBase[name=Pacific Standard Time],unmappedFields={},odataType=null],unmappedFields={},odataType=null],unmappedFields={},odataType=null]
I'll chase it down.
from odata-client.
So odata-client-msgraph is behaving itself but according to the OData spec you should just be able to call client.me().mailboxSettings().get()
. I'll have a look at that in a bit. First I'll try and find out how the user should know when to add .select("X")
to get the expanded property.
from odata-client.
Ah, it's not a bug, this is expected behaviour.
From https://docs.microsoft.com/en-us/graph/api/user-get?view=graph-rest-1.0&tabs=http:
Note: Getting a user returns a default set of properties only (businessPhones, displayName, givenName, id, jobTitle, mail, mobilePhone, officeLocation, preferredLanguage, surname, userPrincipalName). Use $select to get the other properties and relationships for the user object.
from odata-client.
Thanks for the quick response below works fine.
graphObject()
.users(mailid)
.select("mailboxSettings")
.get()
.getMailboxSettings());
from odata-client.
Related Issues (20)
- OData v2 support HOT 8
- NPE when running odata-client-maven-plugin through Java 11 HOT 10
- Batch requests? HOT 6
- Create client for Graph v1.0 behind a proxy doesn't work HOT 6
- How to get partial range of content of a drive item(file) HOT 9
- DriveItem does not have the @microsoft.graph.downloadUrl property HOT 6
- Issue with Microsoft Dynamics EntityDefinitions/RelationshipDefinitions HOT 2
- Onedrive delta link, does not give top(2), but gives all changes though top is added HOT 3
- [Documentation] Authentication with OData Service HOT 7
- Cannot deserialize UnsignedByte using Serializer.deserialize HOT 5
- upload file to onedrive through createUploadSession - itemWithPath() not found HOT 4
- httpResponse of odata.client.HttpResponse put(String s, .List<RequestHeader> list, InputStream inputStream, int i,HttpRequestOptions httpRequestOptions) does not give reponse body in httpResponse.getText() as post() method gives. HOT 8
- odata\client\TestingService.class- not returning response body for patchOrPut() method. HOT 17
- post() now does a HTTP PUT HOT 4
- HttpPatch Delta<T> parameter is always Null HOT 1
- odata-client-runtime dependency on jaxb-core and jaxb-impl HOT 2
- Unable to generate a client with dynamics finance and operations metadata HOT 10
- Support "Evolvable Enumerations" with a default value HOT 5
- Hit java reserved identifier 'package' HOT 5
- Automatic mapping of "expanded" objects support? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from odata-client.