You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using (var context = await pnpContextFactory.CreateAsync(pUri))
{
try
{
// Get the Team
var team = await context.Team.GetAsync(o => o.Channels);
// Get the Channels
//var channels = team.Channels.AsRequested();
foreach (var chan in team.Channels.AsRequested())
{
string name = chan.DisplayName;
// Get the channel
var channel = team.Channels.AsRequested().FirstOrDefault(i => i.DisplayName == chan.DisplayName);
channel = await channel.GetAsync(o => o.Messages);
var chatMessages = channel.Messages;
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
Thank you very much
The text was updated successfully, but these errors were encountered:
Category
Describe the bug
Folowing the code from https://pnp.github.io/pnpcore/using-the-sdk/teams-channel-chat.html for
Getting Chat Messages
I get error "Requested value 'systemEventMessage' was not found" for the line
channel = await channel.GetAsync(o => o.Messages);
Steps to reproduce
Thank you very much
The text was updated successfully, but these errors were encountered: