WinRb / Viewpoint

A Ruby client access library for Microsoft Exchange Web Services (EWS)
Apache License 2.0
248 stars 171 forks source link

Find for recurring calendar items #270

Closed nemilya closed 3 months ago

nemilya commented 6 years ago

Is there any way to search for Recurring calendar items by begin/end pediod?

https://msdn.microsoft.com/en-us/library/office/dn727655(v=exchg.150).aspx#sectionSection0

Now they are missing if searching by items_between...

Thank!

tobias-- commented 6 years ago

As a workaround you can use find_items with calendar_view as described in this issue: https://github.com/WinRb/Viewpoint/issues/184#issuecomment-63967542

paulvt commented 5 years ago

This seems to be a bug/regression? In Viewpoint 0.1.27 it used a CalendarView when calling find_items on a calendar folder which would expand this. See also: https://github.com/WinRb/Viewpoint/blob/1139abcb9d02661988badd69f4ac235b67fbd01c/lib/model/generic_folder.rb#L291 and https://github.com/WinRb/Viewpoint/blob/1139abcb9d02661988badd69f4ac235b67fbd01c/lib/model/calendar_folder.rb#L60

Now this method just seems to have a copy-pasted version of what is in GenericFolder. See also: https://github.com/WinRb/Viewpoint/blob/e8fec4ab1af25fc128062cd96770afdb9fc38c68/lib/ews/types/generic_folder.rb#L106 and https://github.com/WinRb/Viewpoint/blob/e8fec4ab1af25fc128062cd96770afdb9fc38c68/lib/ews/types/calendar_folder.rb#L10

pcai commented 3 months ago

according to @paulvt this is resolved in #276