microsoftgraph / microsoftgraph/msgraph-sdk-dotnet

Can't use Expand to get singleValueExtendedProperties on a single email query

Open
#2,288 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug: metadata OpenApi
Dominant language
C#
Stars
789
Forks
264
Avg merge
15h 17m
Merged PRs (30d)
3

Description

While trying to expand the singleValueExtendedProperties using the the following
Groups[groupId].Events.GetAsync there is no option to provide expand.

Steps to reproduce the behavior:

  1. Go to Microsoft Graph Api explorer
  2. Make a request using the following
  3. https://graph.microsoft.com/v1.0/groups/[omitted]/events/?$expand=singleValueExtendedProperties($filter=id eq 'String {[omitted]} Name [omitted]')
  4. Scroll down for C# code snippet
  5. The following will not compile
    var result = await graphClient.Groups["{group-id}"].Events.GetAsync((requestConfiguration) => { requestConfiguration.QueryParameters.Expand = new string []{ "singleValueExtendedProperties($filter=id eq 'String {[omitted]} Name [omitted]')" }; });
    Expand does not exist

Expected behavior
Should be able to retrive a single event

Client version
5.38.0

Additional context
Is there any other way to achieve the desired out come

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the generated Groups["{group-id}"].Events.GetAsync request configuration shown in the report and compare its query parameters with the Graph API Explorer request. Check how singleValueExtendedProperties expansion is represented for this endpoint, then verify that the C# snippet compiles and sends the requested expand expression.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.