Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unable to retrieve completed plans. #1956

Closed
1 of 6 tasks
milanholemans opened this issue Jun 8, 2022 · 1 comment · Fixed by #1957
Closed
1 of 6 tasks

[BUG] Unable to retrieve completed plans. #1956

milanholemans opened this issue Jun 8, 2022 · 1 comment · Fixed by #1957
Labels
bug Something isn't working

Comments

@milanholemans
Copy link
Contributor

Reporting an Issue or Missing Feature

I have a Planner plan with a completed task. When I run

Get-PnPPlannerTask -PlanId Isp_70BV1kOJ6rilI8NPi5cAHFre

I get this response:

image

Found out the issue is because of a JSON parse problem.
The JSON returned from Graph for the property completedBy is a user object.

image

However in the PlannerTask model, the CompletedBy property is of the type string.

public string CompletedBy { get; set; }

Expected behavior

Tasks are returned

Actual behavior

Error:
Get-PnPPlannerTask: Object reference not set to an instance of an object.

Steps to reproduce behavior

  1. Create a Planner plan
  2. Create a task
  3. Complete the task
  4. Run Get-PnPPlannerTask -PlanId "abdefgh"

What is the version of the Cmdlet module you are running?

v1.10.0

Which operating system/environment are you running PnP PowerShell on?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify
@milanholemans milanholemans added the bug Something isn't working label Jun 8, 2022
@milanholemans
Copy link
Contributor Author

When fine, I'm willing to fix this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant