Question about subscription lifetime

Kalinga Somana 25 Reputation points
2023-12-16T12:09:24.33+00:00

Hi Everyone,

We are creating a subscription to receive change notifications in chat and channel. In the documentation It says that the subscription expires in 3 days However while developing the bot we observed we are not receiving any change notifications after one hour. Is it because we are using a Microsoft sandbox account for development?

Thanks!

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,613 questions
0 comments No comments
{count} votes

Accepted answer
  1. Deepanshu Sharma 500 Reputation points Microsoft External Staff
    2023-12-17T19:57:14.6233333+00:00

    Hello @Kalinga Somana

    Welcome to the community!

    Yes, according to the documentation a subscription typically expires in 3 days.

    However, expirationDateTime also determines how long the subscription will remain active. When creating a subscription, you set this value to indicate the duration for which you want to receive change notifications.

    For example, if you set expirationDateTime to "2023-12-19T11:00:00.0000000Z", the subscription will be active until Dec. 19, 2023, at 11:00 AM (UTC).

    Remember that if you request a subscription with an expirationDateTime more than 1 hour in the future, you must also subscribe to lifecycle notifications by including a lifecycleNotificationUrl property in your subscription request. This ensures that you receive notifications related to the subscription’s lifecycle events.

    refer this https://learn.microsoft.com/en-us/graph/webhooks-lifecycle?tabs=http

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.