-
When I used Graph SDK, I used to get a group by mail-nickname like so:
Returns an error "PnP.Core: Unresolved tokens found in API call groups/{GraphId}" which leads me to believe I needed to create the context with the group ID like in the documentation. Is there a way to use the pnpContext.GraphClient to run Graph queries ? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@Ofer-Gal : at this moment that's not a supported scenario, PnP Core SDK works by initializing a PnPContext from either a given site url or group id. So if you have the group id // Your group id
Guid groupId = new Guid("593DB9B2-2167-45FC-8387-A2438696AB8E");
using (var pnpContext = await pnpContextFactory.CreateAsync(groupId))
{
// Work with the SharePoint site (and Team) connected to this Microsoft 365 group
} |
Beta Was this translation helpful? Give feedback.
@Ofer-Gal : at this moment that's not a supported scenario, PnP Core SDK works by initializing a PnPContext from either a given site url or group id. So if you have the group id