Closed ArveSystad closed 2 years ago
Hey @ArveSystad,
Thanks for raising this. Any chance you could share the version of the SDK you are using when making the request?
Hey @ArveSystad,
This looks to be an issue with the serialization library. I have created https://github.com/microsoft/kiota-serialization-json-dotnet/pull/8 to fix this. You should be able to pull the updated package in the next day or so.
In the meantime, if you are not modifying any values in the additionalData you can probably work around the issue excluding values in the additionalData if you did not modify them by doing something like this.
var apps = await graphServiceClient.Applications.GetAsync();
var application = apps.Value.FirstOrDefault(x => x.DisplayName == "MyApp");
application.AdditionalData = new Dictionary<string, object>(); // exclude/reset values in additionData for now if we didn't modify them.
await _graphClient.Applications[application.Id].PatchAsync(application);
Brilliant, thanks! I guess I'm a bit late to the party with the version, but for whatever it's worth: <PackageReference Include="Microsoft.Graph.Beta" Version="5.1.0-preview" />
.
Reproduced by:
I have an existing application in Azure AD B2C, and trying to set some properties. Always throws up "Parameter count mismatch", even when not modifying the application at all, like shown above.
(Obviosuly, in my real code, I do modify the object, but regardless of what I do I get the same. In my specific case, I'm trying to add
RedirectUris
on the Application when it fails. I do usePatchAsync
with success on API connectors in the same little app.)Tried using the non-beta SDK, but that doesn't seem to let me add B2C User Flows, so for now, that doesn't fit my use case elsewhere.
If I add them manually through the portal, they show up when using this SDK.
As a side note: I also notice when trying to add them via Terraform (
web.redirecturis
), nothing shows up anywhere (neither portal nor SDK). Possibly related?