Nikii
❔ Microsoft Graph SDK - Serializing objects
Hello,
I am currently working with Microsoft Graph API to work with the Planner. My goal is to backup tasks, buckets and such (all info necessary basically) so that it could be later imported in case things got deleted.
I figured that I'd backup the information in JSON format, so that it can be easily uploaded back in without much hassle.
However, I'm running into an issue;
var tasks = await graphClient.Groups["id"].Planner.Plans["id"].Tasks.GetAsync();
I've noticed that tasks
has a .Serialize()
method, however, I cannot figure out how to supply it with a Microsoft.Kiota.Abstractions.SerializationWriter
param. Any ideas?
The general idea is to serialize all of the tasks into JSON and then store it in a file.2 replies