Skip to content

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

@lilitzarafyan

Description

@lilitzarafyan

Is your feature request related to a problem? Please describe the problem.

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.

Describe the solution you'd like.

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

Additional context?

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions