Share via

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 Security | Microsoft Graph
0 comments No comments

Answer accepted by question author

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

Was this answer helpful?

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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.