Skip to content

Cannot request events delta without startDateTime #321

Description

Describe the bug

Event delta documentation says param startDateTime is optional when working with calendars but class DeltaRequestBuilder always include it in template url causing call to fail with ODataError.

Expected behavior

When performing a normal call without any optional param to get a full delta, no error should append.

How to reproduce

$client->me()
->calendars()
->byCalendarId($remoteId)
->events()
->delta()
->get(
    new DeltaRequestBuilderGetRequestConfiguration([
        'Prefer' => sprintf('outlook.timezone="%s"', $local->getTimeZone()->getName())
    ])
)
->wait()

SDK Version

2.8.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

{
    "error": {
        "code": "ErrorInvalidParameter",
        "message": "The value '' of parameter 'StartDateTime' is invalid."
    }
}

Configuration

No response

Other information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions