Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,447 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I subscribed the calendar events notification through microsoft graph api ,but only receive created and deleted changes without updated changes。
String calendarId = primaryCalendarOptional.get().id;
String notifyUrl = graphProperties.getNotifyUrl();
String resource = "/users/" + email + "/calendars/" + calendarId + "/events";
List<String> changeType = ImmutableList.of("updated", "deleted", "created");
long subExp = System.currentTimeMillis() + SUB_DURATION;
Subscription subscription = new Subscription();
subscription.changeType = String.join(",", changeType);
subscription.notificationUrl = notifyUrl;
subscription.resource = resource;
subscription.expirationDateTime = OffsetDateTime.ofInstant(Instant.ofEpochMilli(subExp), ZoneId.systemDefault());
subscription.latestSupportedTlsVersion = "v1_2";
Subscription subscriptionEvent = null;
try {
subscriptionEvent = graphServiceClient.subscriptions()
.buildRequest()
.post(subscription);
} catch (ClientException e) {
log.error("subscription failed: {}", e.getMessage());
throw new RuntimeException(e);
}
I can't receive updated changes, when i use api to create a event, only receives create events,usually, when you create a event,then there will be a created change and several updated changes