Skip to content

Change Set-PnPWebhookSubscription to use the same defualt expiration date as Add-PnPWebhookSubsription#3106

Merged
gautamdsheth merged 2 commits intopnp:devfrom
reusto:bugfix/updateWebhook6Months
May 17, 2023
Merged

Change Set-PnPWebhookSubscription to use the same defualt expiration date as Add-PnPWebhookSubsription#3106
gautamdsheth merged 2 commits intopnp:devfrom
reusto:bugfix/updateWebhook6Months

Conversation

@reusto
Copy link
Contributor

@reusto reusto commented May 12, 2023

…kSubscription

Before creating a pull request, make sure that you have read the contribution file located at

https://github.com/pnp/powerShell/blob/dev/CONTRIBUTING.md

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

What is in this Pull Request ?

Update to Set-PnPWebhookSubscription to use the same default expiration data as Add-PnPWebhookSubscription.
This resolves a potential issue where 6 months - 72 hours > 180 days which would return an error from the API. (see: https://learn.microsoft.com/en-us/sharepoint/dev/apis/webhooks/overview-sharepoint-webhooks#expiration)

Summary

copilot:summary

Details

copilot:walkthrough

@gautamdsheth gautamdsheth merged commit 34736dd into pnp:dev May 17, 2023
@gautamdsheth
Copy link
Collaborator

Good catch, thanks @reusto !!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants