{"id":5467,"date":"2020-10-19T08:00:15","date_gmt":"2020-10-19T15:00:15","guid":{"rendered":"https:\/\/officedevblogs.wpengine.com\/?p=5467"},"modified":"2020-10-19T08:00:15","modified_gmt":"2020-10-19T15:00:15","slug":"deprecated-includeproperties-property-for-microsoft-graph-beta-change-notifications-please-use-includeresourcedata","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/deprecated-includeproperties-property-for-microsoft-graph-beta-change-notifications-please-use-includeresourcedata\/","title":{"rendered":"Announcing deprecation of includeProperties property for Microsoft Graph change notifications"},"content":{"rendered":"<p>Microsoft Graph allows users to create subscriptions on target resources to receive notifications about changes to the subscribed resources. Recently, we launched a feature to create rich notifications for Microsoft Teams by setting the <strong>includeResourceData<\/strong> value to `true` in the subscription\u2019s creation API payload. For details, see the <a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/resources\/subscription?view=graph-rest-1.0\">subscription reference<\/a> documentation.<\/p>\n<p>With the introduction of the includeResourceData value, we are retiring the <strong>includeProperties <\/strong>property currently on the Microsoft Graph beta endpoint as of January 1, 2021. If your Microsoft Teams app currently uses the <strong>includeProperties<\/strong> resource, please update it immediately to use <strong>includeResourceData <\/strong>to ensure your code still works.<\/p>\n<p>The following example shows how to create change notification subscriptions using <strong>includeResourceData<\/strong>:<\/p>\n<p>POST https:\/\/graph.microsoft.com\/beta\/subscriptions<\/p>\n<pre class=\"lang: decode:true \">Content-type: application\/json\n\n{\n\n\u00a0\u00a0 \"resource\":\"teams\/getAllMessages\",\n\n\u00a0\u00a0 \"changeType\":\"created,updated\",\n\n\u00a0\u00a0 \"clientState\":\"ClientSecret\",\n\n\u00a0\u00a0 \"notificationUrl\":\"https:\/\/webhookappexample.azurewebsites.net\/api\/notifications\",\n\n\u00a0\u00a0 \"expirationDateTime\":\"2020-11-01T18:00:36.9592725+00:00\",\n\n\u00a0\u00a0 \"includeResourceData\":true,\n\n\u00a0\u00a0 \"encryptionCertificate\":\"MIIDQjCCAiqgAwIBAgIQRql6VVODTX2XXXXXXXXXXXXXXXXX\",\n\n\u00a0\u00a0 \"encryptionCertificateId\":\"4ca5c96d4713489baf1166b7d26a8de9\"\n\n}<\/pre>\n<p>Happy coding!<\/p>\n<p>The Microsoft Graph Team<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are retiring the includeProperties property currently on the Microsoft Graph beta endpoint as of January 1, 2021. If your Microsoft Teams app currently uses the includeProperties resource, please update it immediately to use includeResourceData to ensure your code still works.<\/p>\n","protected":false},"author":69077,"featured_media":25159,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-5467","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-graph"],"acf":[],"blog_post_summary":"<p>We are retiring the includeProperties property currently on the Microsoft Graph beta endpoint as of January 1, 2021. If your Microsoft Teams app currently uses the includeProperties resource, please update it immediately to use includeResourceData to ensure your code still works.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/5467","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/69077"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=5467"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/5467\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/25159"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=5467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=5467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=5467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}