Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,326 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi There,
I'm trying to get the group member changes from group.delta query
But i cant access "members@delta" any ideas ?
This is what i'm trying to do
string deltaLink = deltaPage.OdataDeltaLink.ToString();
var groupResult = await graphClient.Groups.Delta
.WithUrl(deltaLink)
.GetAsDeltaGetResponseAsync();
foreach (var group in groupResult.Value)
{
var add = group.AdditionalData.TryGetValue("members@delta", out var membersDelta2);
if (group.AdditionalData.TryGetValue("members@delta", out var membersDelta) &&
membersDelta is JsonElement changedMembers &&
changedMembers.ValueKind == JsonValueKind.Array)//verify that the members delta is present
{
}
}
Serializing the UntypedArray object to a string using KiotaJsonSerializer then deserializing back will resolve this
if ((group?.AdditionalData.TryGetValue("members@delta", out var value) ?? false)
&& value is UntypedArray untypedArray)
{
var tempJson = KiotaJsonSerializer.SerializeAsString(untypedArray);
}