pnp / pnp/pnpframework

UpdateWebhookSubscription is not returning true or false

Open
#415 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Description

Discussed in https://github.com/pnp/pnpframework/discussions/414

Originally posted by MurugesanManokaran July 12, 2021
.NET 5.0 web api project
with pnp framework nuget package 1.5.0

azure AD app registered with Sites.Manage api permission

ListExtensions.UpdateWebhookSubscription(targetList, subscriptionId, endPointUrl, expirationDateTime, accessToken);

received the following exception message:

"{"odata.metadata":"{sharepointonline url}/_api/$metadata#Edm.Null","odata.null":true}"

any help?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with ListExtensions.UpdateWebhookSubscription and reproduce the reported call using the .NET 5.0 setup, PnP Framework 1.5.0, and the supplied SharePoint permissions. Trace the returned response and define completion as the method returning a boolean result instead of the reported Edm.Null response.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.