Closed jussihi closed 9 months ago
This is still not implemented.
query_params = DeltaRequestBuilder.DeltaRequestBuilderGetQueryParameters(
changeType = "created"
)
fails to TypeError: DeltaRequestBuilder.DeltaRequestBuilderGetQueryParameters.__init__() got an unexpected keyword argument 'changeType'
it is however clearly documented online: https://learn.microsoft.com/en-us/graph/api/message-delta?view=graph-rest-1.0&tabs=http#query-parameters
@samwelkanda , @baywet could you please check this? Am I understanding something wrong? I thought that this would get fixed before release 1.0.0, but for some reason it's still not there. :)
@jussihi thanks for the nudge here. This is caused by this metadata issue. https://github.com/microsoftgraph/msgraph-metadata/issues/480
Let me see if I can get it prioritized
Ah, I see it is some dependency and not tied to the preview-or-not -status of this python library! Thanks for the information. Let's see when we get the feature added!
Update: the fix to metadata was just merged in today, which means the query parameter should show up in the next generation next week. https://github.com/microsoftgraph/msgraph-metadata/pull/500
Thanks for the heads-up and quick work on this @baywet !
@baywet , which pip module should I upgrade to see this change? I'm still not able to get it working... 😁
This is because we haven't released a new version since my last message. Please bear with us while we sort through some organizational/staffing aspects in the background. If this is a pressing matter, please open a support ticket and reference this issue.
Ok @baywet , thanks for the info. No no there is no hurry, I know it might be a challenging time what we are living in :) I was just wondering if I was doing something wrong here at my end. Thanks for the support again, it is very much appreciated!
Also https://learn.microsoft.com/en-us/graph/api/calendar-list-calendarview?view=graph-rest-1.0&tabs=python#request (CalendarViewRequestBuilderGetQueryParameters
) are missing, I get
CalendarViewRequestBuilder.CalendarViewRequestBuilderGetQueryParameters.__init__() got an unexpected keyword argument 'start_date_time'
@baywet , Should I open another issue or is it enough to report this here?
Also, is there a way to get around this SDK limitation for time being, i.e. can I somehow manually insert these parameters to the request?
I would like to get the calendar view one working, since I need it.
@jussihi This is a different problem (different endpoint/operation) maybe opening a separate issue would have been better here. What version of the SDK are you using? The property/query parameter is present. https://github.com/microsoftgraph/msgraph-sdk-python/blame/c1cf802f3ca7f6dc4c22cc9eea765e72c7f9721a/msgraph/generated/users/item/calendar/calendar_view/calendar_view_request_builder.py#L163
As for the original issue of the missing change type, it is present in the latest version of the SDK https://github.com/microsoftgraph/msgraph-sdk-python/blob/c1cf802f3ca7f6dc4c22cc9eea765e72c7f9721a/msgraph/generated/users/item/mail_folders/item/messages/delta/delta_request_builder.py#L91
Allow to correct the previous statement, it is merged in the main branch, but it seems the package hasn't been published since the original release. https://pypi.org/project/msgraph-sdk/ @samwelkanda is there anything holding weekly releases at this point?
@baywet thank you again for the quick response. Once there is >1.0.0 version available, I will update my python package and report back about these features! 👍
This works now! Thank you for support, this issue can be closed :)
@baywet
https://learn.microsoft.com/en-us/graph/delta-query-messages#use-query-parameters-in-a-delta-query-for-messages
quoted: Additionally, to return only certain type of changes (created, updated or deleted) in the delta query's response, you can optionally filter the desired type of change using a custom query option changeType. Possible values are created, updated or deleted.
Regarding my other problems, there doesn't seem to be a way to set the query parameter for delta tracking's "changeType" field. None of this package's
DeltaRequestBuilderGetQueryParameters
has this field. Or should I create my own class inheritingDeltaRequestBuilderGetQueryParameters
and add it there manually?