How to expand singleValueExtendedProperties on messages delta query?

santnerin 5 Reputation points
2024-09-30T11:15:04.08+00:00

I'm trying to expand singleValueExtendedProperties on a messages delta query without success. I'm getting the following error message: "Parsing OData Select and Expand failed: Value cannot be null. (Parameter 'initialState')"

Here is my code snippet:

await graphClient.Me.MailFolders[mailFolder].Messages.Delta.GetAsDeltaGetResponseAsync(config =>                {
	config.QueryParameters.Select = ["internetMessageId, toRecipients, ccRecipients, singleValueExtendedProperties"];
	config.QueryParameters.Filter = $"receivedDateTime ge {date}";            
	config.QueryParameters.Expand = new[] { "singleValueExtendedProperties($filter=id eq 'String 		{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} Name xxx')" };
}

What's wrong with my request or is expanding singleValueExtendedProperties on delta queries not supported?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,379 questions
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.