I'm using GraphServiceClient V5.7.0 to sync personal contacts with my desktop application and would like to use delta to get only changes since my last sync.
In Microsoft's example it say to use SkipToken or DeltaToken in the QueryParameters (i linked user example becauese there is no example for personal contacts)
var result = await graphClient.Users.Delta.GetAsync((requestConfiguration) =>
{
requestConfiguration.QueryParameters.Skiptoken = "oEBwdSP6uehIAxQOWq_3Ksh_TLol6KIm3stvdc6hGhZRi1hQ7Spe__dpvm3U4zReE4CYXC2zOtaKdi7KHlUtC2CbRiBIUwOxPKLa";
});
But QueryParameters doesn't have SkipToken parameter. I found this GitHub's issue, and they suggest to use
requestConfiguration.QueryParameters.Add("%24skiptoken", "skiptoken");
But QueryParameters doesn't have even Add method.
Is there any solution to complete the request without waiting for the correction?
Based on the workaround you need to create
RequestInformationand when you accessQueryParametersonRequestInformationyou should be able to callAddmethod.When using
GetAsync((requestConfiguration)orToGetRequestInformation((requestConfiguration)the type ofrequestConfiguration.QueryParametersisDeltaRequestBuilderGetQueryParametersand it has no method to add custom query parameter.