Skip to content

SDK doesn't support Model filtering parameter for GetAllRetainedMessages endpoint #2892

Open
@lilitzarafyan

Description

@lilitzarafyan

Describe the bug

I am looking to use message editing and GetAllRetainedMessages for both chats and channels, using the 5.77 version(latest version) of the Microsoft Graph SDK. However, I encountered an issue where a required model parameter appears to be missing in the SDK version.
The API request functions correctly when executed via Postman, returning the expected response. This indicates that the API itself is functioning as intended.

Expected behavior

The model parameter should exist in the GetAllRetainedMessagesRequestBuilderGetQueryParameters class for both chats and channels.

How to reproduce

var retainedChannelMessages = _client
.Teams[teamId]
.Channels
.GetAllRetainedMessages.GetAsGetAllRetainedMessagesGetResponseAsync(r =>
{
r.QueryParameters.Filter = filter;
r.QueryParameters.Select = new string[] { "replyToId", "reactions", "hostedContents" };
r.QueryParameters.Top = _exportApiSettings.MessagesPageSize;
//r.QueryParameters.Model = _requestModel; //Model doesn't exist
});

SDK Version

5.77

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:waiting-for-triageAn issue that is yet to be reviewed or assignedtype:bugA broken experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions