-
Notifications
You must be signed in to change notification settings - Fork 252
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
[Client bug]: Planner CheckList .Net SDK error #2050
Comments
We will fix the missing var requestBody = new PlannerTask
{
PlanId = "idPlanner",
BucketId = "bucketId",
Title = "titulo",
DueDateTime = DateTime.Parse("dataFim"),
StartDateTime = DateTime.UtcNow,
Details = new PlannerTaskDetails
{
Description = "descricao",
Checklist = new PlannerChecklistItems()
{
AdditionalData = new Dictionary<string, object>
{
{
"95e27074-6c4a-447a-aa24-9d718a0b86fa", new PlannerChecklistItem
Title = "Update task details",
IsChecked = true
}
}
}
}
}
}; |
I have the same issue with the Microsoft.Graph.Models.PlannerTask object. Sending this to the Create Planner Task Endpoint gives me "The request is invalid:\r\nValue cannot be null.\r\nParameter name: qualifiedName". When commenting out the "Assignments" Dictionary, it works. var task = new PlannerTask
{
PlanId = planId,
BucketId = bucketId,
Title = title,
StartDateTime = DateTime.Now,
DueDateTime = DateTime.Now.AddHours(1),
Assignments = new PlannerAssignments
{
AdditionalData = new Dictionary<string, object>
{
{
"95e27074-6c4a-447a-aa24-9d718a0b86fa", new
{
OdataType = "#microsoft.graph.plannerAssignment",
OrderHint = " !",
}
},
}
}
}; |
Same with The |
I'm having the same issue. Is the key on the dictionary simply a unique string? `public async static Task UpdateDetailsOfTaskAddChecklist(GraphServiceClient graphClient, PlannerTask plannerTask, string[] checklistItems)
|
Any chance this works out if you specify the type in the dictionary as "95e27074-6c4a-447a-aa24-9d718a0b86fa", new PlannerAssignment
{
OdataType = "#microsoft.graph.plannerAssignment",
OrderHint = " !",
} |
This worked indeed. Thank you! Is there a similar way to solve this for the PlannerExternalReferences List? var details = new PlannerTaskDetails
{
Id = taskId,
Description = description,
References = new PlannerExternalReferences
{
AdditionalData = {
"https://learn.microsoft.com/", new
{
OdataType = "#microsoft.graph.plannerExternalReference",
Alias = "Microsoft Learn",
Type = "Other",
}
},
}
}; |
This will be resolved with #2095
|
Describe the bug
I used the example on the learn site to create my request:
https://learn.microsoft.com/pt-br/graph/api/plannertaskdetails-update?view=graph-rest-1.0&tabs=csharp
I always receive the following error:
"The request is invalid:\r\nValue cannot be null.\r\nParameter name: qualifiedName"
I have tried to search for these issues and the closest thing I could find was addressed in this issue:
https://learn.microsoft.com/en-us/answers/questions/1192857/planner-task-assigned-to-user-using-graph-api
In the above case, the parameter has a corresponding class. But the checklist does not.
To Reproduce
Generate Graph Client and acquire token
Expected behavior
Create a Task White PreBuilt Values of Checklist
Client version
SDK graphClient 5.19.0
Permissions AAD: Task.ReadAll and Task.ReadWriteAll.
Desktop (please complete the following information):
Windows 10
The text was updated successfully, but these errors were encountered: